Changing dimensions and margins for fingerprint image in portrait mode.

Landscape layout remains the same with fixed size.

Bug: 27875410

Change-Id: I82ee12ef5efab8bee6a0e187810b399cb45b7f67
This commit is contained in:
Ido Ofir
2016-04-14 14:31:25 -07:00
parent 43fa74b9fd
commit 81513d7a88
2 changed files with 12 additions and 5 deletions

View File

@@ -49,20 +49,25 @@
android:visibility="gone" /> android:visibility="gone" />
<View <View
android:layout_height="0dp" android:layout_height="24dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_weight="1"/> android:layout_weight="1"/>
<ImageView <ImageView
android:id="@+id/fingerprint_in_app_indicator" android:id="@+id/fingerprint_in_app_indicator"
android:layout_width="@dimen/fingerprint_in_app_indicator_size" android:layout_height="wrap_content"
android:layout_height="@dimen/fingerprint_in_app_indicator_size" android:layout_width="wrap_content"
android:layout_weight="5"
android:minHeight="@dimen/fingerprint_in_app_indicator_min_size"
android:minWidth="@dimen/fingerprint_in_app_indicator_min_size"
android:maxHeight="@dimen/fingerprint_in_app_indicator_max_size"
android:maxWidth="@dimen/fingerprint_in_app_indicator_max_size"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:contentDescription="@android:string/fingerprint_icon_content_description" android:contentDescription="@android:string/fingerprint_icon_content_description"
android:src="@drawable/fp_app_indicator" /> android:src="@drawable/fp_app_indicator" />
<View <View
android:layout_height="0dp" android:layout_height="24dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_weight="1"/> android:layout_weight="1"/>

View File

@@ -228,7 +228,9 @@
<dimen name="fingerprint_animation_size">88dp</dimen> <dimen name="fingerprint_animation_size">88dp</dimen>
<dimen name="fingerprint_progress_bar_size">192dp</dimen> <dimen name="fingerprint_progress_bar_size">192dp</dimen>
<dimen name="fingerprint_enrolling_content_margin_top">36dp</dimen> <dimen name="fingerprint_enrolling_content_margin_top">36dp</dimen>
<dimen name="fingerprint_in_app_indicator_size">120dp</dimen> <dimen name="fingerprint_in_app_indicator_size">124dp</dimen>
<dimen name="fingerprint_in_app_indicator_min_size">124dp</dimen>
<dimen name="fingerprint_in_app_indicator_max_size">264dp</dimen>
<dimen name="setup_fingerprint_ring_radius">80dip</dimen> <dimen name="setup_fingerprint_ring_radius">80dip</dimen>
<dimen name="setup_fingerprint_progress_bar_size">168dp</dimen> <dimen name="setup_fingerprint_progress_bar_size">168dp</dimen>