Add more Wi-Fi DPP UI features.
1. Use ConstraintLayout to fix footer buttons at bottom 2. ScrollViews have all other UI components excepts footer buttons 3. Use style/SuwGlifButton for buttons 4. Fix scan fragment crash when rotating screen Bug: 118794978 Test: manual test Change-Id: I509b0156c4835c75da75fb7ac4c82f55a0b506a1
This commit is contained in:
@@ -18,16 +18,15 @@
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/SuwGlifButtonBar">
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_left"
|
||||
style="@style/SuwGlifButton.Secondary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|start"
|
||||
android:text="left"
|
||||
style="?android:attr/borderlessButtonStyle"/>
|
||||
android:layout_gravity="start"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
@@ -36,9 +35,9 @@
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_right"
|
||||
style="@style/SuwGlifButton.Primary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:text="right"/>
|
||||
android:layout_gravity="end"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
Reference in New Issue
Block a user