Fix 3383575: use styled attribs and update layout
This updates the layout to make more room for the button text in SecuritySettings. The code now uses styled attributes to make it easier to tweak in the future. Change-Id: I5fbdf2f6ae4c4c1f9614ab97891f9f2fe6cda628
This commit is contained in:
@@ -84,23 +84,16 @@
|
||||
android:layout_width="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/SecurityPreferenceButtonContainer"
|
||||
android:layout_alignParentRight="true"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Button android:id="@+id/cancel_button"
|
||||
android:layout_width="140dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
style="@style/SecurityPreferenceButton"
|
||||
android:text="@string/lockpassword_cancel_label"/>
|
||||
|
||||
<Button android:id="@+id/next_button"
|
||||
android:layout_width="140dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
style="@style/SecurityPreferenceButton"
|
||||
android:text="@string/lockpassword_continue_label"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -54,25 +54,18 @@
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/SecurityPreferenceButtonContainer"
|
||||
android:layout_alignParentRight="true"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- left / top button: skip, or re-try -->
|
||||
<Button android:id="@+id/footerLeftButton"
|
||||
android:layout_width="140dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
style="@style/SecurityPreferenceButton"
|
||||
android:text="@string/lockpattern_restart_button_text"/>
|
||||
|
||||
<!-- right / bottom button: confirm or ok -->
|
||||
<Button android:id="@+id/footerRightButton"
|
||||
android:layout_width="140dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
style="@style/SecurityPreferenceButton"
|
||||
android:text="@string/lockpattern_confirm_button_text"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -47,25 +47,18 @@
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/SecurityPreferenceButtonContainer"
|
||||
android:layout_alignParentRight="true"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- left / top button: skip, or re-try -->
|
||||
<Button android:id="@+id/skip_button"
|
||||
android:layout_width="140dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
style="@style/SecurityPreferenceButton"
|
||||
android:text="@string/lockpattern_tutorial_cancel_label"/>
|
||||
|
||||
<!-- right / bottom button: confirm or ok -->
|
||||
<Button android:id="@+id/next_button"
|
||||
android:layout_width="140dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
style="@style/SecurityPreferenceButton"
|
||||
android:text="@string/lockpattern_tutorial_continue_label"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -87,23 +87,16 @@
|
||||
android:layout_width="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/SecurityPreferenceButtonContainer"
|
||||
android:layout_alignParentRight="true"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Button android:id="@+id/cancel_button"
|
||||
android:layout_width="140dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
style="@style/SecurityPreferenceButton"
|
||||
android:text="@string/lockpassword_cancel_label"/>
|
||||
|
||||
<Button android:id="@+id/next_button"
|
||||
android:layout_width="140dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
style="@style/SecurityPreferenceButton"
|
||||
android:text="@string/lockpassword_continue_label"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
Reference in New Issue
Block a user