summaryrefslogtreecommitdiffstats
path: root/res/layout-land
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2011-06-30 18:09:06 -0700
committerJim Miller <jaggies@google.com>2011-06-30 18:10:17 -0700
commitc56293dae1165e7ee80672221b08bd7403f8bcd7 (patch)
treed3dfef804eeccc4b2fe47668575fab1d8763ddbd /res/layout-land
parentf5f40108adb39a05c5d779a73aa644d4c155116d (diff)
downloadpackages_apps_Settings-c56293dae1165e7ee80672221b08bd7403f8bcd7.zip
packages_apps_Settings-c56293dae1165e7ee80672221b08bd7403f8bcd7.tar.gz
packages_apps_Settings-c56293dae1165e7ee80672221b08bd7403f8bcd7.tar.bz2
Fix 4686480: Update ChooseLockPatternTutorial
- Shorten description string to fit on one page - Use new scalable LockPatternView to show example pattern. Change-Id: I1204b6de9da05d9d3f4e503bec2fc4fb3034a4b3
Diffstat (limited to 'res/layout-land')
-rw-r--r--res/layout-land/choose_lock_pattern_tutorial.xml57
1 files changed, 28 insertions, 29 deletions
diff --git a/res/layout-land/choose_lock_pattern_tutorial.xml b/res/layout-land/choose_lock_pattern_tutorial.xml
index 606d2e1..ac693cc 100644
--- a/res/layout-land/choose_lock_pattern_tutorial.xml
+++ b/res/layout-land/choose_lock_pattern_tutorial.xml
@@ -17,29 +17,29 @@
<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">
- <RelativeLayout
- android:layout_width="0dip"
- android:layout_height="match_parent"
- android:layout_weight="1">
+ <!-- Top: pattern and information -->
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="0dip"
+ android:layout_weight="1"
+ android:orientation="horizontal">
- <!-- left side: lock pattern -->
+ <!-- left side: lock pattern. Given the square aspect, this will be the smaller of the
+ two dimensions (height) -->
<com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
- android:layout_width="300dip"
- android:layout_height="300dip"
- android:layout_gravity="center_horizontal"
- aspect="square"/>
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"/>
<!-- right side: instructions and buttons -->
<!-- header message -->
<ScrollView
- android:layout_width="300dip"
- android:layout_height="180dip"
- android:layout_alignParentTop="true"
- android:layout_toRightOf="@id/lockPattern"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
android:layout_marginLeft="25dip">
<LinearLayout
@@ -69,25 +69,24 @@
</ScrollView>
- <LinearLayout
- style="@style/SecurityPreferenceButtonContainer"
- android:layout_alignParentRight="true"
- android:layout_alignParentBottom="true"
- android:orientation="horizontal">
+ </LinearLayout>
- <!-- left / top button: skip, or re-try -->
- <Button android:id="@+id/skip_button"
- style="@style/SecurityPreferenceButton"
- android:text="@string/lockpattern_tutorial_cancel_label"/>
+ <!-- Bottom: cancel/next buttons -->
+ <LinearLayout
+ style="@style/SecurityPreferenceButtonContainer"
+ android:orientation="horizontal">
- <!-- right / bottom button: confirm or ok -->
- <Button android:id="@+id/next_button"
- style="@style/SecurityPreferenceButton"
- android:text="@string/lockpattern_tutorial_continue_label"/>
+ <!-- left / top button: skip, or re-try -->
+ <Button android:id="@+id/skip_button"
+ style="@style/SecurityPreferenceButton"
+ android:text="@string/lockpattern_tutorial_cancel_label"/>
- </LinearLayout>
+ <!-- right / bottom button: confirm or ok -->
+ <Button android:id="@+id/next_button"
+ style="@style/SecurityPreferenceButton"
+ android:text="@string/lockpattern_tutorial_continue_label"/>
- </RelativeLayout>
+ </LinearLayout>
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>