Merge "Let biometric prompt button text wrap to new line" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-06-20 02:45:17 +00:00
committed by Android (Google) Code Review
3 changed files with 24 additions and 15 deletions

View File

@@ -50,8 +50,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingHorizontal="24dp" android:paddingHorizontal="24dp"
android:paddingTop="16dp" android:paddingVertical="12dp"
android:paddingBottom="24dp"
android:textSize="12sp" android:textSize="12sp"
android:gravity="center_horizontal" android:gravity="center_horizontal"
android:accessibilityLiveRegion="polite" android:accessibilityLiveRegion="polite"
@@ -60,22 +59,23 @@
<LinearLayout <LinearLayout
android:id="@+id/button_bar" android:id="@+id/button_bar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="72dip" android:layout_height="88dp"
android:paddingTop="24dp"
android:layout_gravity="center_vertical"
style="?android:attr/buttonBarStyle" style="?android:attr/buttonBarStyle"
android:orientation="horizontal"> android:orientation="horizontal"
android:paddingTop="16dp">
<Space android:id="@+id/leftSpacer" <Space android:id="@+id/leftSpacer"
android:layout_width="12dp" android:layout_width="8dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:visibility="visible" /> android:visibility="visible" />
<!-- Negative Button --> <!-- Negative Button -->
<Button android:id="@+id/button_negative" <Button android:id="@+id/button_negative"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
style="@*android:style/Widget.DeviceDefault.Button.Borderless.Colored" style="@*android:style/Widget.DeviceDefault.Button.Borderless.Colored"
android:gravity="center" android:layout_gravity="center_vertical"
android:maxLines="2"/> android:ellipsize="end"
android:maxLines="2"
android:maxWidth="@dimen/biometric_dialog_button_negative_max_width"/>
<Space android:id="@+id/middleSpacer" <Space android:id="@+id/middleSpacer"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
@@ -84,23 +84,27 @@
<!-- Positive Button --> <!-- Positive Button -->
<Button android:id="@+id/button_positive" <Button android:id="@+id/button_positive"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
style="@*android:style/Widget.DeviceDefault.Button.Colored" style="@*android:style/Widget.DeviceDefault.Button.Colored"
android:gravity="center" android:layout_gravity="center_vertical"
android:ellipsize="end"
android:maxLines="2" android:maxLines="2"
android:maxWidth="@dimen/biometric_dialog_button_positive_max_width"
android:text="@string/biometric_dialog_confirm" android:text="@string/biometric_dialog_confirm"
android:visibility="gone"/> android:visibility="gone"/>
<!-- Try Again Button --> <!-- Try Again Button -->
<Button android:id="@+id/button_try_again" <Button android:id="@+id/button_try_again"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
style="@*android:style/Widget.DeviceDefault.Button.Colored" style="@*android:style/Widget.DeviceDefault.Button.Colored"
android:gravity="center" android:layout_gravity="center_vertical"
android:ellipsize="end"
android:maxLines="2" android:maxLines="2"
android:maxWidth="@dimen/biometric_dialog_button_positive_max_width"
android:text="@string/biometric_dialog_try_again" android:text="@string/biometric_dialog_try_again"
android:visibility="gone"/> android:visibility="gone"/>
<Space android:id="@+id/rightSpacer" <Space android:id="@+id/rightSpacer"
android:layout_width="12dip" android:layout_width="8dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:visibility="visible" /> android:visibility="visible" />
</LinearLayout> </LinearLayout>

View File

@@ -41,4 +41,7 @@
<dimen name="bubble_padding_top">4dp</dimen> <dimen name="bubble_padding_top">4dp</dimen>
<dimen name="controls_activity_view_top_offset">25dp</dimen> <dimen name="controls_activity_view_top_offset">25dp</dimen>
<dimen name="biometric_dialog_button_negative_max_width">140dp</dimen>
<dimen name="biometric_dialog_button_positive_max_width">116dp</dimen>
</resources> </resources>

View File

@@ -1116,6 +1116,8 @@
<!-- Biometric Dialog values --> <!-- Biometric Dialog values -->
<dimen name="biometric_dialog_biometric_icon_size">64dp</dimen> <dimen name="biometric_dialog_biometric_icon_size">64dp</dimen>
<dimen name="biometric_dialog_button_negative_max_width">160dp</dimen>
<dimen name="biometric_dialog_button_positive_max_width">136dp</dimen>
<dimen name="biometric_dialog_corner_size">4dp</dimen> <dimen name="biometric_dialog_corner_size">4dp</dimen>
<!-- Y translation when showing/dismissing the dialog--> <!-- Y translation when showing/dismissing the dialog-->
<dimen name="biometric_dialog_animation_translation_offset">350dp</dimen> <dimen name="biometric_dialog_animation_translation_offset">350dp</dimen>