From d2e414c2b6eaaa8dba8b18e643e209b3da38959a Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Fri, 5 Oct 2012 21:13:53 -0700 Subject: [PATCH] Fix layout for decryption password entry. Use the same layout for landscape and portrait, which vertically centers the password entry field. Works fine for portrait. Also removed some vestigial keyboard view in the layout. Bug: 7298970 Change-Id: I499468dda5e6eb46815fd0bed786d14c892cc830 --- .../crypt_keeper_password_entry.xml | 75 ---------------------- res/layout-sw600dp/crypt_keeper_password_entry.xml | 14 ++-- 2 files changed, 7 insertions(+), 82 deletions(-) delete mode 100644 res/layout-sw600dp-land/crypt_keeper_password_entry.xml diff --git a/res/layout-sw600dp-land/crypt_keeper_password_entry.xml b/res/layout-sw600dp-land/crypt_keeper_password_entry.xml deleted file mode 100644 index 81222cca48..0000000000 --- a/res/layout-sw600dp-land/crypt_keeper_password_entry.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/res/layout-sw600dp/crypt_keeper_password_entry.xml b/res/layout-sw600dp/crypt_keeper_password_entry.xml index 731fb22280..f0a7cd0009 100644 --- a/res/layout-sw600dp/crypt_keeper_password_entry.xml +++ b/res/layout-sw600dp/crypt_keeper_password_entry.xml @@ -16,23 +16,25 @@ ** limitations under the License. */ --> + + @@ -41,8 +43,7 @@ android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_toEndOf="@+id/encroid" - android:layout_marginTop="37dip" - android:paddingStart="17dip" + android:layout_centerVertical="true" android:paddingEnd="17dip" android:singleLine="true" android:textAppearance="?android:attr/textAppearanceMedium" @@ -54,12 +55,11 @@ android:layout_height="wrap_content" android:layout_width="320dip" android:layout_toEndOf="@+id/passwordLabel" - android:layout_marginTop="26dip" android:layout_centerVertical="true" android:orientation="horizontal" > - + -- 2.11.0