diff options
author | Jim Miller <jaggies@google.com> | 2011-08-05 18:37:19 -0700 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2011-08-05 19:36:23 -0700 |
commit | 76803d55a5dcd7abc7504a489f2c1d60f965cd2f (patch) | |
tree | 00f65565fb424a48d139f19802a38de68a6e1038 /core | |
parent | e3373ff620bcab34ac0030ee06140563f5dbb016 (diff) | |
download | frameworks_base-76803d55a5dcd7abc7504a489f2c1d60f965cd2f.zip frameworks_base-76803d55a5dcd7abc7504a489f2c1d60f965cd2f.tar.gz frameworks_base-76803d55a5dcd7abc7504a489f2c1d60f965cd2f.tar.bz2 |
Fix 5044158: Fix landscape PIN layout issue
This allows the PIN keyboard to settle to the bottom of the
view and the password textfield to fill the remaining space by
using the new rowOrderPreserved flag on GridLayout.
Change-Id: I8cf8cc383dfb1d6a2a7adbb78a8026fd54628ae0
Diffstat (limited to 'core')
-rw-r--r-- | core/res/res/layout/keyguard_screen_password_landscape.xml | 53 |
1 files changed, 32 insertions, 21 deletions
diff --git a/core/res/res/layout/keyguard_screen_password_landscape.xml b/core/res/res/layout/keyguard_screen_password_landscape.xml index c2536b7..452b982 100644 --- a/core/res/res/layout/keyguard_screen_password_landscape.xml +++ b/core/res/res/layout/keyguard_screen_password_landscape.xml @@ -24,15 +24,17 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:rowCount="7" + android:rowCount="8" android:id="@+id/root" - android:clipChildren="false"> + android:clipChildren="false" + android:rowOrderPreserved="false"> <!-- Column 0 --> <com.android.internal.widget.DigitalClock android:id="@+id/time" android:layout_marginTop="8dip" android:layout_marginBottom="8dip" - android:layout_gravity="right"> + android:layout_gravity="right" + android:layout_rowSpan="2"> <!-- Because we can't have multi-tone fonts, we render two TextViews, one on top of the other. Hence the redundant layout... --> @@ -118,24 +120,33 @@ /> <!-- Column 1 --> - <Space android:layout_width="16dip" android:layout_rowSpan="7" /> + <Space + android:layout_width="16dip" + android:layout_rowSpan="8" + android:layout_gravity="fill_vertical" /> <!-- Column 2 - password entry field and PIN keyboard --> - <EditText android:id="@+id/passwordEntry" - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:layout_gravity="fill" - android:gravity="center" - android:singleLine="true" - android:textStyle="normal" - android:inputType="textPassword" - android:textSize="24sp" - android:minEms="8" - android:textAppearance="?android:attr/textAppearanceMedium" - android:background="@drawable/lockscreen_password_field_dark" - android:textColor="?android:attr/textColorPrimary" - android:imeOptions="flagNoFullscreen|actionDone" - /> + <LinearLayout + android:orientation="vertical" + android:layout_width="270dip" + android:layout_gravity="center_vertical"> + + <EditText android:id="@+id/passwordEntry" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:gravity="center" + android:singleLine="true" + android:textStyle="normal" + android:inputType="textPassword" + android:textSize="24sp" + android:minEms="8" + android:textAppearance="?android:attr/textAppearanceMedium" + android:background="@drawable/lockscreen_password_field_dark" + android:textColor="?android:attr/textColorPrimary" + android:imeOptions="flagNoFullscreen|actionDone" + /> + + </LinearLayout> <!-- Numeric keyboard --> <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard" @@ -146,7 +157,7 @@ android:layout_marginTop="5dip" android:keyBackground="@*android:drawable/btn_keyboard_key_ics" android:visibility="gone" - android:layout_rowSpan="6" + android:layout_rowSpan="7" /> <!-- Music transport control --> @@ -154,7 +165,7 @@ layout="@layout/keyguard_transport_control" android:layout_row="0" android:layout_column="0" - android:layout_rowSpan="5" + android:layout_rowSpan="6" android:layout_columnSpan="1" android:layout_gravity="fill" /> |