Use ButtonBarLayout to stack buttons
In fingerprint-enroll-finish landscape, if there is not enough space to display the buttons, stack them by using ButtonBarLayout. Bug: 67370165 Test: Manual Change-Id: I482b811d6a2af545c4783a1cdd50b566c34b60c3
This commit is contained in:
@@ -75,13 +75,13 @@
|
|||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="1" />
|
android:layout_weight="1" />
|
||||||
|
|
||||||
<LinearLayout
|
<com.android.setupwizardlib.view.ButtonBarLayout
|
||||||
|
style="@style/SuwGlifButtonBar.Stackable"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:clipChildren="false"
|
android:clipChildren="false"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false">
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
style="@style/SetupWizardButton.Negative"
|
style="@style/SetupWizardButton.Negative"
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/security_settings_fingerprint_enroll_done" />
|
android:text="@string/security_settings_fingerprint_enroll_done" />
|
||||||
|
|
||||||
</LinearLayout>
|
</com.android.setupwizardlib.view.ButtonBarLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user