summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hamby <jhamby@google.com>2011-12-08 15:33:32 -0800
committerJake Hamby <jhamby@google.com>2011-12-08 15:33:32 -0800
commit48d50958af05db84ea787f5e4096ff40307ec804 (patch)
tree8423eab0c61420683962bc287d34612104670e5d
parent583fdf0068ac46fb384a5aa2b193faf743f8221c (diff)
downloadframeworks_base-48d50958af05db84ea787f5e4096ff40307ec804.zip
frameworks_base-48d50958af05db84ea787f5e4096ff40307ec804.tar.gz
frameworks_base-48d50958af05db84ea787f5e4096ff40307ec804.tar.bz2
Swap OK and Cancel buttons in SIM PIN unlock screen to match ICS guidelines.
The ICS navigation guidelines state that the OK action should be to the right of the cancel action in UI dialogs. Update the SIM PIN unlock and SIM PUK unlock layouts to swap the OK and Cancel buttons (for soft keypad) and the OK and Emergency Call buttons for the physical keyboard landscape layout. Bug: 5730977 Change-Id: Iaf565bc2b584292a34f5a72a7a763003f9149f27
-rw-r--r--core/res/res/layout-sw600dp/keyguard_screen_sim_pin_landscape.xml16
-rw-r--r--core/res/res/layout/keyguard_screen_sim_pin_landscape.xml16
-rw-r--r--core/res/res/layout/keyguard_screen_sim_puk_landscape.xml16
-rw-r--r--core/res/res/layout/twelve_key_entry.xml8
4 files changed, 28 insertions, 28 deletions
diff --git a/core/res/res/layout-sw600dp/keyguard_screen_sim_pin_landscape.xml b/core/res/res/layout-sw600dp/keyguard_screen_sim_pin_landscape.xml
index c65dd83..0b94fc1 100644
--- a/core/res/res/layout-sw600dp/keyguard_screen_sim_pin_landscape.xml
+++ b/core/res/res/layout-sw600dp/keyguard_screen_sim_pin_landscape.xml
@@ -93,29 +93,29 @@
android:layout_marginLeft="8dip"
android:layout_marginRight="8dip">
- <Button android:id="@+id/ok"
- android:text="@android:string/ok"
+ <Button android:id="@+id/emergencyCallButton"
+ android:text="@android:string/lockscreen_emergency_call"
android:layout_alignParentBottom="true"
+ android:layout_centerHorizontal="true"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_marginBottom="8dip"
android:layout_marginRight="8dip"
android:textSize="18sp"
- />
+ android:drawableLeft="@drawable/ic_emergency"
+ android:drawablePadding="8dip"
+ />
- <Button android:id="@+id/emergencyCallButton"
- android:text="@android:string/lockscreen_emergency_call"
+ <Button android:id="@+id/ok"
+ android:text="@android:string/ok"
android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_marginBottom="8dip"
android:layout_marginLeft="8dip"
android:textSize="18sp"
- android:drawableLeft="@drawable/ic_emergency"
- android:drawablePadding="8dip"
/>
</LinearLayout>
diff --git a/core/res/res/layout/keyguard_screen_sim_pin_landscape.xml b/core/res/res/layout/keyguard_screen_sim_pin_landscape.xml
index 59065e1..3cb19c3 100644
--- a/core/res/res/layout/keyguard_screen_sim_pin_landscape.xml
+++ b/core/res/res/layout/keyguard_screen_sim_pin_landscape.xml
@@ -91,29 +91,29 @@
android:layout_marginLeft="8dip"
android:layout_marginRight="8dip">
- <Button android:id="@+id/ok"
- android:text="@android:string/ok"
+ <Button android:id="@+id/emergencyCallButton"
+ android:text="@android:string/lockscreen_emergency_call"
android:layout_alignParentBottom="true"
+ android:layout_centerHorizontal="true"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_marginBottom="8dip"
android:layout_marginRight="8dip"
android:textSize="18sp"
- />
+ android:drawableLeft="@drawable/ic_emergency"
+ android:drawablePadding="4dip"
+ />
- <Button android:id="@+id/emergencyCallButton"
- android:text="@android:string/lockscreen_emergency_call"
+ <Button android:id="@+id/ok"
+ android:text="@android:string/ok"
android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_marginBottom="8dip"
android:layout_marginLeft="8dip"
android:textSize="18sp"
- android:drawableLeft="@drawable/ic_emergency"
- android:drawablePadding="4dip"
/>
</LinearLayout>
diff --git a/core/res/res/layout/keyguard_screen_sim_puk_landscape.xml b/core/res/res/layout/keyguard_screen_sim_puk_landscape.xml
index b662e82..722dc26 100644
--- a/core/res/res/layout/keyguard_screen_sim_puk_landscape.xml
+++ b/core/res/res/layout/keyguard_screen_sim_puk_landscape.xml
@@ -153,29 +153,29 @@
android:layout_marginLeft="8dip"
android:layout_marginRight="8dip">
- <Button android:id="@+id/ok"
- android:text="@android:string/ok"
+ <Button android:id="@+id/emergencyCallButton"
+ android:text="@android:string/lockscreen_emergency_call"
android:layout_alignParentBottom="true"
+ android:layout_centerHorizontal="true"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_marginBottom="8dip"
android:layout_marginRight="8dip"
android:textSize="18sp"
- />
+ android:drawableLeft="@drawable/ic_emergency"
+ android:drawablePadding="4dip"
+ />
- <Button android:id="@+id/emergencyCallButton"
- android:text="@android:string/lockscreen_emergency_call"
+ <Button android:id="@+id/ok"
+ android:text="@android:string/ok"
android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_marginBottom="8dip"
android:layout_marginLeft="8dip"
android:textSize="18sp"
- android:drawableLeft="@drawable/ic_emergency"
- android:drawablePadding="4dip"
/>
</LinearLayout>
diff --git a/core/res/res/layout/twelve_key_entry.xml b/core/res/res/layout/twelve_key_entry.xml
index 46301cd..09c749d 100644
--- a/core/res/res/layout/twelve_key_entry.xml
+++ b/core/res/res/layout/twelve_key_entry.xml
@@ -144,7 +144,7 @@
android:layout_marginRight="2dip"
android:orientation="horizontal">
- <Button android:id="@+id/ok"
+ <Button android:id="@+id/cancel"
android:layout_width="0sp"
android:layout_height="fill_parent"
android:layout_weight="1"
@@ -152,7 +152,7 @@
android:layout_marginRight="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textStyle="bold"
- android:text="@android:string/ok"
+ android:text="@android:string/cancel"
/>
<Button android:id="@+id/zero"
@@ -165,7 +165,7 @@
android:textStyle="bold"
/>
- <Button android:id="@+id/cancel"
+ <Button android:id="@+id/ok"
android:layout_width="0sp"
android:layout_height="fill_parent"
android:layout_weight="1"
@@ -173,7 +173,7 @@
android:layout_marginRight="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textStyle="bold"
- android:text="@android:string/cancel"
+ android:text="@android:string/ok"
/>
</LinearLayout>