am aeb199ab
: Better layouts for security screen setups as part of b/7459863
* commit 'aeb199ab00cb8f470a14f02fe2e67527ca72e737': Better layouts for security screen setups as part of b/7459863
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
style="@style/SecurityPreferenceButtonContainer"
|
style="@style/SecurityPreferenceButtonContainer"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_alignParentBottom="true"
|
||||||
android:orientation="vertical">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<!-- left / top button: skip, or re-try -->
|
<!-- left / top button: skip, or re-try -->
|
||||||
<Button android:id="@+id/footerLeftButton"
|
<Button android:id="@+id/footerLeftButton"
|
||||||
|
@@ -19,8 +19,7 @@
|
|||||||
android:id="@+id/topLayout"
|
android:id="@+id/topLayout"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent">
|
||||||
android:background="@color/black">
|
|
||||||
|
|
||||||
<!-- left side: instructions and messages -->
|
<!-- left side: instructions and messages -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@@ -17,31 +17,41 @@
|
|||||||
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
|
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/topLayout"
|
android:id="@+id/topLayout"
|
||||||
android:orientation="horizontal"
|
android:orientation="vertical"
|
||||||
android:layout_width="match_parent"
|
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_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:gravity="center_horizontal">
|
||||||
android:gravity="center_horizontal|center_vertical"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
|
<!-- header message -->
|
||||||
|
<ScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginTop="14dip">
|
||||||
|
|
||||||
|
<TextView android:id="@+id/headerText"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
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"
|
<com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
|
||||||
android:layout_width="354dip"
|
android:layout_width="354dip"
|
||||||
android:layout_height="354dip"
|
android:layout_height="354dip"
|
||||||
aspect="square"/>
|
aspect="square"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
<!-- right side: instructions and buttons -->
|
android:layout_height="0dip"
|
||||||
<RelativeLayout
|
android:layout_weight="1"/>
|
||||||
android:layout_width="0dip"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:gravity="center_horizontal">
|
|
||||||
|
|
||||||
<!-- footer message -->
|
<!-- footer message -->
|
||||||
<TextView android:id="@+id/footerText"
|
<TextView android:id="@+id/footerText"
|
||||||
@@ -51,7 +61,7 @@
|
|||||||
android:layout_marginTop="16dip"
|
android:layout_marginTop="16dip"
|
||||||
android:layout_toEndOf="@id/lockPattern"
|
android:layout_toEndOf="@id/lockPattern"
|
||||||
android:layout_marginStart="100dip"
|
android:layout_marginStart="100dip"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:visibility="gone"/>
|
android:visibility="gone"/>
|
||||||
|
|
||||||
<!-- confirm / restart buttons -->
|
<!-- confirm / restart buttons -->
|
||||||
@@ -73,25 +83,5 @@
|
|||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- header message -->
|
|
||||||
<ScrollView
|
|
||||||
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"/>
|
|
||||||
|
|
||||||
</ScrollView>
|
|
||||||
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
|
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
|
||||||
|
|
||||||
|
@@ -16,78 +16,48 @@
|
|||||||
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
|
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/topLayout"
|
android:id="@+id/topLayout"
|
||||||
android:orientation="horizontal"
|
android:orientation="vertical"
|
||||||
android:layout_width="match_parent"
|
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_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>
|
|
||||||
|
|
||||||
<!-- right side: instructions and buttons -->
|
|
||||||
<RelativeLayout
|
|
||||||
android:layout_width="0dip"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:gravity="center_horizontal">
|
android:gravity="center_horizontal">
|
||||||
|
|
||||||
<!-- confirm / restart buttons -->
|
|
||||||
<LinearLayout android:id="@+id/buttonContainer"
|
|
||||||
style="@style/SecurityPreferenceButtonContainer"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:visibility="invisible">
|
|
||||||
|
|
||||||
<!-- 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>
|
|
||||||
|
|
||||||
<!-- footer message -->
|
|
||||||
<TextView android:id="@+id/footerText"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_above="@id/buttonContainer"
|
|
||||||
android:layout_marginTop="16dip"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
|
||||||
|
|
||||||
<!-- header message -->
|
<!-- header message -->
|
||||||
<ScrollView
|
<ScrollView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentTop="true"
|
android:gravity="center"
|
||||||
android:layout_marginTop="20dip"
|
android:layout_marginTop="40dip">
|
||||||
android:layout_marginStart="20dip"
|
|
||||||
android:layout_above="@id/footerText"
|
|
||||||
android:gravity="center_vertical|center_horizontal">
|
|
||||||
|
|
||||||
<TextView android:id="@+id/headerText"
|
<TextView android:id="@+id/headerText"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="22sp"/>
|
android:gravity="center"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
</RelativeLayout>
|
<!-- footer message -->
|
||||||
|
<TextView android:id="@+id/footerText"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="16dip"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||||
|
|
||||||
|
<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"/>
|
||||||
|
|
||||||
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
|
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
|
||||||
|
|
||||||
|
@@ -27,12 +27,14 @@
|
|||||||
<ScrollView
|
<ScrollView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
android:layout_marginTop="96dip">
|
android:layout_marginTop="96dip">
|
||||||
|
|
||||||
<TextView android:id="@+id/headerText"
|
<TextView android:id="@+id/headerText"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
android:gravity="center"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
@@ -41,7 +43,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="16dip"
|
android:layout_marginTop="16dip"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:visibility="gone"/>
|
android:visibility="gone"/>
|
||||||
|
|
||||||
<!-- bottom: lock pattern -->
|
<!-- bottom: lock pattern -->
|
||||||
|
@@ -26,12 +26,14 @@
|
|||||||
<ScrollView
|
<ScrollView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
android:layout_marginTop="96dip">
|
android:layout_marginTop="96dip">
|
||||||
|
|
||||||
<TextView android:id="@+id/headerText"
|
<TextView android:id="@+id/headerText"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
android:gravity="center"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
@@ -40,7 +42,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="16dip"
|
android:layout_marginTop="16dip"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||||
|
|
||||||
<!-- bottom: lock pattern -->
|
<!-- bottom: lock pattern -->
|
||||||
<com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
|
<com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
|
||||||
|
@@ -19,6 +19,5 @@
|
|||||||
android:padding="8dip"
|
android:padding="8dip"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:textColor="?android:attr/textColorSecondary"
|
|
||||||
android:text="@string/unlock_backup_info_summary"
|
android:text="@string/unlock_backup_info_summary"
|
||||||
/>
|
/>
|
@@ -2390,7 +2390,7 @@
|
|||||||
<!-- Do not translate. -->
|
<!-- Do not translate. -->
|
||||||
<string name="lockpattern_need_to_unlock_wrong_footer" />
|
<string name="lockpattern_need_to_unlock_wrong_footer" />
|
||||||
<!-- Security & location settings screen, change unlock pattern screen instruction on top of screen. This si when they are supposed to draw a new unlock pattern (for example, if they are changing their unlock patterns)..-->
|
<!-- Security & location settings screen, change unlock pattern screen instruction on top of screen. This si when they are supposed to draw a new unlock pattern (for example, if they are changing their unlock patterns)..-->
|
||||||
<string name="lockpattern_recording_intro_header">Draw an unlock pattern</string>
|
<string name="lockpattern_recording_intro_header">Draw an unlock pattern:</string>
|
||||||
<!-- Security & location settings screen, change unlock pattern screen hint on bottom of screen. We are telling them to press the menu button to see more options or help. -->
|
<!-- Security & location settings screen, change unlock pattern screen hint on bottom of screen. We are telling them to press the menu button to see more options or help. -->
|
||||||
<string name="lockpattern_recording_intro_footer">Press Menu for help.</string>
|
<string name="lockpattern_recording_intro_footer">Press Menu for help.</string>
|
||||||
<!-- Security & location settings screen, change unlock pattern screen instruction on top of screen while drawing pattern -->
|
<!-- Security & location settings screen, change unlock pattern screen instruction on top of screen while drawing pattern -->
|
||||||
|
Reference in New Issue
Block a user