diff options
author | Danielle Millett <dmillett@google.com> | 2012-11-21 11:20:10 -0500 |
---|---|---|
committer | Danielle Millett <dmillett@google.com> | 2012-11-30 21:55:33 -0500 |
commit | aeb199ab00cb8f470a14f02fe2e67527ca72e737 (patch) | |
tree | 33520cdd994c6bc3a68bed01499ef86a0ab12cfb /res/layout-sw600dp-land/choose_lock_pattern.xml | |
parent | 495626818d5fcba9c7e15c23788a55e456116260 (diff) | |
download | packages_apps_settings-aeb199ab00cb8f470a14f02fe2e67527ca72e737.zip packages_apps_settings-aeb199ab00cb8f470a14f02fe2e67527ca72e737.tar.gz packages_apps_settings-aeb199ab00cb8f470a14f02fe2e67527ca72e737.tar.bz2 |
Better layouts for security screen setups as part of b/7459863
The major change is that choose pattern and confirm pattern layouts
no longer uses a split screen layout on tablets. The new layout
closely mimics the layout for portrait.
Other minor changes include:
-Made the header font size for confirm pattern and choose pattern
medium (this matches with face unlock changes).
-Made the buttons on choose pattern for landscape phone side-by-side
rather than above each other (to be consistent with face unlock).
-Removed the black background from phone landscape confirm pattern
since it's inconsistent with all the other layouts.
Change-Id: I4473fe880ac471a3b5bc5399a454b10504589f87
Diffstat (limited to 'res/layout-sw600dp-land/choose_lock_pattern.xml')
-rw-r--r-- | res/layout-sw600dp-land/choose_lock_pattern.xml | 124 |
1 files changed, 57 insertions, 67 deletions
diff --git a/res/layout-sw600dp-land/choose_lock_pattern.xml b/res/layout-sw600dp-land/choose_lock_pattern.xml index 506570d..8fa1cee 100644 --- a/res/layout-sw600dp-land/choose_lock_pattern.xml +++ b/res/layout-sw600dp-land/choose_lock_pattern.xml @@ -17,81 +17,71 @@ <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/topLayout" - android:orientation="horizontal" + android:orientation="vertical" android:layout_width="match_parent" - android:layout_height="match_parent"> - - <!-- left side: lock pattern widget --> - <RelativeLayout - android:layout_width="0dip" - android:layout_height="match_parent" - android:layout_weight="1" - android:gravity="center_horizontal|center_vertical" - android:orientation="horizontal"> - - <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" - android:layout_width="354dip" - android:layout_height="354dip" - aspect="square"/> - - </RelativeLayout> + android:layout_height="match_parent" + android:gravity="center_horizontal"> - <!-- right side: instructions and buttons --> - <RelativeLayout - android:layout_width="0dip" - android:layout_height="match_parent" - android:layout_weight="1" - android:gravity="center_horizontal"> + <!-- header message --> + <ScrollView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:layout_marginTop="14dip"> - <!-- footer message --> - <TextView android:id="@+id/footerText" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_below="@id/headerText" - android:layout_marginTop="16dip" - android:layout_toEndOf="@id/lockPattern" - android:layout_marginStart="100dip" - android:textAppearance="?android:attr/textAppearanceLarge" - android:visibility="gone"/> - - <!-- confirm / restart buttons --> - <LinearLayout android:id="@+id/buttonContainer" - style="@style/SecurityPreferenceButtonContainer" - android:layout_alignParentEnd="true" - android:layout_alignParentBottom="true" - android:orientation="horizontal"> - - <!-- left / top button: skip, or re-try --> - <Button android:id="@+id/footerLeftButton" - style="@style/SecurityPreferenceButton" - android:text="@string/lockpattern_restart_button_text"/> - - <!-- right / bottom button: confirm or ok --> - <Button android:id="@+id/footerRightButton" - style="@style/SecurityPreferenceButton" - android:text="@string/lockpattern_confirm_button_text"/> - - </LinearLayout> - - <!-- header message --> - <ScrollView + <TextView android:id="@+id/headerText" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_alignParentTop="true" - android:layout_marginTop="20dip" - android:layout_marginStart="20dip" - android:layout_above="@id/buttonContainer" - android:gravity="center_vertical|center_horizontal"> - - <TextView android:id="@+id/headerText" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textAppearance="?android:attr/textAppearanceLarge"/> + android:gravity="center" + android:textAppearance="?android:attr/textAppearanceMedium"/> + + </ScrollView> + + <View + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="0.6"/> + + <!-- lock pattern widget --> + <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" + android:layout_width="354dip" + android:layout_height="354dip" + aspect="square"/> + + <View + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1"/> + + <!-- footer message --> + <TextView android:id="@+id/footerText" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/headerText" + android:layout_marginTop="16dip" + android:layout_toEndOf="@id/lockPattern" + android:layout_marginStart="100dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:visibility="gone"/> + + <!-- confirm / restart buttons --> + <LinearLayout android:id="@+id/buttonContainer" + style="@style/SecurityPreferenceButtonContainer" + android:layout_alignParentEnd="true" + android:layout_alignParentBottom="true" + android:orientation="horizontal"> - </ScrollView> + <!-- left / top button: skip, or re-try --> + <Button android:id="@+id/footerLeftButton" + style="@style/SecurityPreferenceButton" + android:text="@string/lockpattern_restart_button_text"/> + <!-- right / bottom button: confirm or ok --> + <Button android:id="@+id/footerRightButton" + style="@style/SecurityPreferenceButton" + android:text="@string/lockpattern_confirm_button_text"/> - </RelativeLayout> + </LinearLayout> </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> |