diff options
| author | Jim Miller <jaggies@google.com> | 2009-12-18 16:16:05 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2009-12-18 16:16:05 -0800 |
| commit | 8cb0badf6cee2026c4f9b1657cd6ce233288b63c (patch) | |
| tree | c3eb7ef15403b4b63419f194bec787cee3c5f1ec | |
| parent | c4c450c379268bdcf8cf0f52c38a763cde836997 (diff) | |
| parent | 5ee51f07356b81ff2b026ef864f2f6349994e3fc (diff) | |
| download | frameworks_base-8cb0badf6cee2026c4f9b1657cd6ce233288b63c.zip frameworks_base-8cb0badf6cee2026c4f9b1657cd6ce233288b63c.tar.gz frameworks_base-8cb0badf6cee2026c4f9b1657cd6ce233288b63c.tar.bz2 | |
am 5ee51f07: am 05de7c88: Merge change I420cc110 into eclair-mr2
Merge commit '5ee51f07356b81ff2b026ef864f2f6349994e3fc'
* commit '5ee51f07356b81ff2b026ef864f2f6349994e3fc':
Fix 2318046: Modify PIN entry layout in keyguard so it works well on HVGA as well as WVGA devices.
| -rw-r--r-- | core/res/res/layout/keyguard_screen_sim_pin_portrait.xml | 93 |
1 files changed, 45 insertions, 48 deletions
diff --git a/core/res/res/layout/keyguard_screen_sim_pin_portrait.xml b/core/res/res/layout/keyguard_screen_sim_pin_portrait.xml index 45e96a3..2a23ada 100644 --- a/core/res/res/layout/keyguard_screen_sim_pin_portrait.xml +++ b/core/res/res/layout/keyguard_screen_sim_pin_portrait.xml @@ -16,59 +16,55 @@ ** limitations under the License. */ --> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" + android:orientation="vertical" android:background="@android:color/background_dark" - > + android:gravity="center_horizontal"> <LinearLayout android:id="@+id/topDisplayGroup" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:layout_alignParentTop="true" - android:orientation="vertical" - > + android:orientation="vertical"> <!-- header text ('Enter Pin Code') --> <TextView android:id="@+id/headerText" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:layout_marginTop="9dip" android:gravity="center" android:lines="2" - android:textAppearance="?android:attr/textAppearanceLarge" - /> + android:textAppearance="?android:attr/textAppearanceLarge"/> - <RelativeLayout + <!-- password entry --> + <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" - android:layout_marginTop="18dip" + android:orientation="horizontal" android:layout_marginRight="6dip" android:layout_marginLeft="6dip" - android:background="@android:drawable/edit_text" - > + android:gravity="center_vertical" + android:background="@android:drawable/edit_text"> <!-- displays dots as user enters pin --> <TextView android:id="@+id/pinDisplay" - android:layout_width="wrap_content" - android:layout_height="64dip" - android:layout_centerInParent="true" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" android:maxLines="1" android:textAppearance="?android:attr/textAppearanceLargeInverse" android:textStyle="bold" android:inputType="textPassword" - /> + /> <ImageButton android:id="@+id/backspace" android:src="@android:drawable/ic_input_delete" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentRight="true" - android:layout_centerVertical="true" - android:layout_marginRight="1dip" - /> - </RelativeLayout> - + android:layout_marginRight="-3dip" + android:layout_marginBottom="-3dip" + /> + </LinearLayout> </LinearLayout> @@ -78,16 +74,14 @@ android:layout_height="wrap_content" android:layout_below="@id/topDisplayGroup" android:layout_marginTop="10dip" - android:orientation="vertical" - > + android:orientation="vertical"> <LinearLayout android:layout_width="fill_parent" android:layout_height="64dip" android:layout_marginLeft="2dip" android:layout_marginRight="2dip" - android:orientation="horizontal" - > + android:orientation="horizontal"> <Button android:id="@+id/one" android:layout_width="0sp" @@ -125,8 +119,7 @@ android:layout_height="64dip" android:layout_marginLeft="2dip" android:layout_marginRight="2dip" - android:orientation="horizontal" - > + android:orientation="horizontal"> <Button android:id="@+id/four" android:layout_width="0sp" @@ -164,8 +157,7 @@ android:layout_height="64dip" android:layout_marginLeft="2dip" android:layout_marginRight="2dip" - android:orientation="horizontal" - > + android:orientation="horizontal"> <Button android:id="@+id/seven" android:layout_width="0sp" @@ -203,8 +195,7 @@ android:layout_height="64dip" android:layout_marginLeft="2dip" android:layout_marginRight="2dip" - android:orientation="horizontal" - > + android:orientation="horizontal"> <Button android:id="@+id/ok" android:layout_width="0sp" @@ -242,27 +233,33 @@ <!-- end keypad --> </LinearLayout> - - <!-- emergency call button --> - <Button - android:id="@+id/emergencyCall" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_centerHorizontal="true" - android:layout_alignParentBottom="true" - android:drawableLeft="@android:drawable/ic_emergency" - android:drawablePadding="8dip" - android:text="@android:string/lockscreen_emergency_call" - /> - <!-- spacer below keypad --> <View android:id="@+id/spacerBottom" android:layout_width="fill_parent" android:layout_height="1dip" - android:layout_marginBottom="6dip" + android:layout_marginTop="6dip" android:layout_above="@id/emergencyCall" - android:background="@android:drawable/divider_horizontal_dark"/> + android:background="@android:drawable/divider_horizontal_dark" + /> + <!-- The emergency button should take the rest of the space and be centered vertically --> + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:gravity="center" + android:orientation="vertical"> + + <!-- emergency call button --> + <Button + android:id="@+id/emergencyCall" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:drawableLeft="@android:drawable/ic_emergency" + android:drawablePadding="8dip" + android:text="@android:string/lockscreen_emergency_call" + /> + </LinearLayout> -</RelativeLayout> +</LinearLayout> |
