[LockScreenSetup] Move retry button to top

Move retry button to top, under the subheader, and change the label
to "Clear". Also hide the footer textView since all footer labels are
currently empty.

Bug: 20916604
Change-Id: I7915a132945687815dbb16ce0a60207cc02eed2b
This commit is contained in:
Maurice Lam
2015-05-20 17:54:00 -07:00
parent cb5444ad2c
commit a9a04efe89
2 changed files with 14 additions and 18 deletions

View File

@@ -48,6 +48,13 @@
android:minHeight="50dip" android:minHeight="50dip"
android:textSize="18sp"/> android:textSize="18sp"/>
<Button android:id="@+id/retryButton"
style="@android:style/Widget.Material.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/lockpattern_retry_button_text"/>
<com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dip" android:layout_height="0dip"
@@ -56,24 +63,13 @@
</LinearLayout> </LinearLayout>
<LinearLayout <TextView android:id="@+id/footerText"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:orientation="horizontal"> android:minHeight="50dip"
android:textSize="14sp"
<Button android:id="@+id/retryButton" android:visibility="gone"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/lockpattern_retry_button_text"/>
<TextView android:id="@+id/footerText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="50dip"
android:textSize="14sp"/>
</LinearLayout>
<!-- Buttons are hidden during setup, and use the buttons in setup navigation bar instead --> <!-- Buttons are hidden during setup, and use the buttons in setup navigation bar instead -->
<LinearLayout <LinearLayout

View File

@@ -2920,7 +2920,7 @@
<!-- Security & location settings screen, change unlock pattern screen button, on bottom of screen. After they draw a pattern and release their finger, we display the pattern so they remember. If they are nto satisfied with this pattern, they click this button to redraw the pattern. --> <!-- Security & location settings screen, change unlock pattern screen button, on bottom of screen. After they draw a pattern and release their finger, we display the pattern so they remember. If they are nto satisfied with this pattern, they click this button to redraw the pattern. -->
<string name="lockpattern_restart_button_text">Redraw</string> <string name="lockpattern_restart_button_text">Redraw</string>
<!-- Security & location settings screen, change unlock pattern screen button, on bottom of screen. If they are supposed to enter their current pattern before being able to draw another one, and they screw up, they hit this button to try again --> <!-- Security & location settings screen, change unlock pattern screen button, on bottom of screen. If they are supposed to enter their current pattern before being able to draw another one, and they screw up, they hit this button to try again -->
<string name="lockpattern_retry_button_text">Retry</string> <string name="lockpattern_retry_button_text">Clear</string>
<!-- Security & location settings screen, change unlock pattern screen button, on bottom of screen. Once they draw a new pattern and confirm it by drawing it again, they press this button to exit --> <!-- Security & location settings screen, change unlock pattern screen button, on bottom of screen. Once they draw a new pattern and confirm it by drawing it again, they press this button to exit -->
<string name="lockpattern_continue_button_text">Continue</string> <string name="lockpattern_continue_button_text">Continue</string>
<!-- Security & location settings screen, unlock screen activity title --> <!-- Security & location settings screen, unlock screen activity title -->