Fix 4686480: Update ChooseLockPatternTutorial

- Shorten description string to fit on one page
- Use new scalable LockPatternView to show example pattern.

Change-Id: I1204b6de9da05d9d3f4e503bec2fc4fb3034a4b3
This commit is contained in:
Jim Miller
2011-06-30 18:09:06 -07:00
parent f5f40108ad
commit c56293dae1
3 changed files with 40 additions and 43 deletions

View File

@@ -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,10 +69,11 @@
</ScrollView>
</LinearLayout>
<!-- Bottom: cancel/next buttons -->
<LinearLayout
style="@style/SecurityPreferenceButtonContainer"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:orientation="horizontal">
<!-- left / top button: skip, or re-try -->
@@ -87,7 +88,5 @@
</LinearLayout>
</RelativeLayout>
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>

View File

@@ -33,6 +33,7 @@
android:orientation="vertical"
android:padding="5dip">
<!-- Top: instructions -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -40,26 +41,27 @@
android:text="@string/lock_title"
android:paddingBottom="10dip"
style="?android:attr/textAppearanceLarge"
android:visibility="visible"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp"
android:text="@string/lock_intro_message"
/>
<!-- bottom: lock pattern -->
<com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
android:layout_width="200dip"
android:layout_height="200dip"
android:layout_marginTop="10dip"
android:layout_gravity="left"/>
</LinearLayout>
</ScrollView>
<!-- bottom: lock pattern. Note the size is match_parent in both axis since requested aspect
is square and the pattern view will choose the smaller of the two. -->
<com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<LinearLayout
style="@style/SecurityPreferenceButtonContainer"
android:orientation="horizontal">

View File

@@ -2132,12 +2132,8 @@
\n\nReady to start? Touch \u201CNext\u201D.
</string>
<!-- ChooseLockPatternTutorial, tutorial screen text -->
<string name="lock_intro_message" product="default"><font size="17">Protect your phone from unauthorized use by creating a personal screen unlock pattern.
\n<font height="17">\n</font><b>1</b>\u00A0 On the next screen, watch while an example pattern is drawn.
\n<font height="17">\n</font><b>2</b>\u00A0 When ready, draw your own personal unlock pattern. Experiment with different patterns but connect at least four dots.
\n<font height="17">\n</font><b>3</b>\u00A0 Redraw your pattern to confirm.
\n<font height="17">\n</font><b>Ready to start? Touch \u201CNext\u201D</b>.
\n<font height="3">\n</font>To leave your phone unprotected, touch \u201CCancel\u201D.</font>
<string name="lock_intro_message" product="default">Protect your phone from unauthorized use by creating a personal screen unlock pattern. Use your finger to connect at least four dots in any order on the next screen.
\n\nReady to start? Touch \u201CNext\u201D.
</string>
<!-- Applications Settings --> <skip />