diff --git a/core/java/com/android/internal/widget/PasswordEntryKeyboardHelper.java b/core/java/com/android/internal/widget/PasswordEntryKeyboardHelper.java index fb33748ae2c81..366b983c39239 100644 --- a/core/java/com/android/internal/widget/PasswordEntryKeyboardHelper.java +++ b/core/java/com/android/internal/widget/PasswordEntryKeyboardHelper.java @@ -29,6 +29,7 @@ import android.util.Log; import android.view.KeyCharacterMap; import android.view.KeyEvent; import android.view.View; +import android.view.ViewGroup; import android.view.ViewRootImpl; import com.android.internal.R; @@ -62,7 +63,8 @@ public class PasswordEntryKeyboardHelper implements OnKeyboardActionListener { mContext = context; mTargetView = targetView; mKeyboardView = keyboardView; - if (useFullScreenWidth || mKeyboardView.getLayoutParams().width == -1) { + if (useFullScreenWidth + || mKeyboardView.getLayoutParams().width == ViewGroup.LayoutParams.MATCH_PARENT) { createKeyboards(); } else { createKeyboardsWithSpecificSize(mKeyboardView.getLayoutParams().width, diff --git a/core/res/res/drawable-hdpi/btn_keyboard_key_dark_normal_holo.9.png b/core/res/res/drawable-hdpi/btn_keyboard_key_dark_normal_holo.9.png new file mode 100644 index 0000000000000..5e6a9d6a478b7 Binary files /dev/null and b/core/res/res/drawable-hdpi/btn_keyboard_key_dark_normal_holo.9.png differ diff --git a/core/res/res/drawable-hdpi/btn_keyboard_key_dark_normal_off_holo.9.png b/core/res/res/drawable-hdpi/btn_keyboard_key_dark_normal_off_holo.9.png new file mode 100644 index 0000000000000..eb9d7406af7da Binary files /dev/null and b/core/res/res/drawable-hdpi/btn_keyboard_key_dark_normal_off_holo.9.png differ diff --git a/core/res/res/drawable-hdpi/btn_keyboard_key_dark_normal_on_holo.9.png b/core/res/res/drawable-hdpi/btn_keyboard_key_dark_normal_on_holo.9.png new file mode 100644 index 0000000000000..869a33080c62b Binary files /dev/null and b/core/res/res/drawable-hdpi/btn_keyboard_key_dark_normal_on_holo.9.png differ diff --git a/core/res/res/drawable-hdpi/btn_keyboard_key_dark_pressed_holo.9.png b/core/res/res/drawable-hdpi/btn_keyboard_key_dark_pressed_holo.9.png new file mode 100644 index 0000000000000..7ec33dd207693 Binary files /dev/null and b/core/res/res/drawable-hdpi/btn_keyboard_key_dark_pressed_holo.9.png differ diff --git a/core/res/res/drawable-hdpi/btn_keyboard_key_dark_pressed_off_holo.9.png b/core/res/res/drawable-hdpi/btn_keyboard_key_dark_pressed_off_holo.9.png new file mode 100644 index 0000000000000..72d63da61debf Binary files /dev/null and b/core/res/res/drawable-hdpi/btn_keyboard_key_dark_pressed_off_holo.9.png differ diff --git a/core/res/res/drawable-hdpi/btn_keyboard_key_dark_pressed_on_holo.9.png b/core/res/res/drawable-hdpi/btn_keyboard_key_dark_pressed_on_holo.9.png new file mode 100644 index 0000000000000..fcc5cac897ff0 Binary files /dev/null and b/core/res/res/drawable-hdpi/btn_keyboard_key_dark_pressed_on_holo.9.png differ diff --git a/core/res/res/drawable-hdpi/btn_keyboard_key_light_normal_holo.9.png b/core/res/res/drawable-hdpi/btn_keyboard_key_light_normal_holo.9.png new file mode 100644 index 0000000000000..baff85873eb69 Binary files /dev/null and b/core/res/res/drawable-hdpi/btn_keyboard_key_light_normal_holo.9.png differ diff --git a/core/res/res/drawable-hdpi/btn_keyboard_key_light_pressed_holo.9.png b/core/res/res/drawable-hdpi/btn_keyboard_key_light_pressed_holo.9.png new file mode 100644 index 0000000000000..5612c51a12c55 Binary files /dev/null and b/core/res/res/drawable-hdpi/btn_keyboard_key_light_pressed_holo.9.png differ diff --git a/core/res/res/drawable-mdpi/btn_keyboard_key_dark_normal_holo.9.png b/core/res/res/drawable-mdpi/btn_keyboard_key_dark_normal_holo.9.png new file mode 100644 index 0000000000000..d449d760067d7 Binary files /dev/null and b/core/res/res/drawable-mdpi/btn_keyboard_key_dark_normal_holo.9.png differ diff --git a/core/res/res/drawable-mdpi/btn_keyboard_key_dark_normal_off_holo.9.png b/core/res/res/drawable-mdpi/btn_keyboard_key_dark_normal_off_holo.9.png new file mode 100644 index 0000000000000..80fe863f5f6c3 Binary files /dev/null and b/core/res/res/drawable-mdpi/btn_keyboard_key_dark_normal_off_holo.9.png differ diff --git a/core/res/res/drawable-mdpi/btn_keyboard_key_dark_normal_on_holo.9.png b/core/res/res/drawable-mdpi/btn_keyboard_key_dark_normal_on_holo.9.png new file mode 100644 index 0000000000000..196d6d9bda61f Binary files /dev/null and b/core/res/res/drawable-mdpi/btn_keyboard_key_dark_normal_on_holo.9.png differ diff --git a/core/res/res/drawable-mdpi/btn_keyboard_key_dark_pressed_holo.9.png b/core/res/res/drawable-mdpi/btn_keyboard_key_dark_pressed_holo.9.png new file mode 100644 index 0000000000000..8f340d3551de8 Binary files /dev/null and b/core/res/res/drawable-mdpi/btn_keyboard_key_dark_pressed_holo.9.png differ diff --git a/core/res/res/drawable-mdpi/btn_keyboard_key_dark_pressed_off_holo.9.png b/core/res/res/drawable-mdpi/btn_keyboard_key_dark_pressed_off_holo.9.png new file mode 100644 index 0000000000000..b34b95765a7df Binary files /dev/null and b/core/res/res/drawable-mdpi/btn_keyboard_key_dark_pressed_off_holo.9.png differ diff --git a/core/res/res/drawable-mdpi/btn_keyboard_key_dark_pressed_on_holo.9.png b/core/res/res/drawable-mdpi/btn_keyboard_key_dark_pressed_on_holo.9.png new file mode 100644 index 0000000000000..02f4b3de941cf Binary files /dev/null and b/core/res/res/drawable-mdpi/btn_keyboard_key_dark_pressed_on_holo.9.png differ diff --git a/core/res/res/drawable-mdpi/btn_keyboard_key_light_normal_holo.9.png b/core/res/res/drawable-mdpi/btn_keyboard_key_light_normal_holo.9.png new file mode 100644 index 0000000000000..976083fdf9090 Binary files /dev/null and b/core/res/res/drawable-mdpi/btn_keyboard_key_light_normal_holo.9.png differ diff --git a/core/res/res/drawable-mdpi/btn_keyboard_key_light_pressed_holo.9.png b/core/res/res/drawable-mdpi/btn_keyboard_key_light_pressed_holo.9.png new file mode 100644 index 0000000000000..c39dd4a94c52f Binary files /dev/null and b/core/res/res/drawable-mdpi/btn_keyboard_key_light_pressed_holo.9.png differ diff --git a/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_normal_holo.9.png b/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_normal_holo.9.png new file mode 100644 index 0000000000000..d2cd029bb6b77 Binary files /dev/null and b/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_normal_holo.9.png differ diff --git a/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_normal_off_holo.9.png b/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_normal_off_holo.9.png new file mode 100644 index 0000000000000..0f709eb02f051 Binary files /dev/null and b/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_normal_off_holo.9.png differ diff --git a/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_normal_on_holo.9.png b/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_normal_on_holo.9.png new file mode 100644 index 0000000000000..2f4de8ee74eef Binary files /dev/null and b/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_normal_on_holo.9.png differ diff --git a/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_holo.9.png b/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_holo.9.png new file mode 100644 index 0000000000000..3871689ef23cc Binary files /dev/null and b/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_holo.9.png differ diff --git a/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_off_holo.9.png b/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_off_holo.9.png new file mode 100644 index 0000000000000..836ea6e789cf6 Binary files /dev/null and b/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_off_holo.9.png differ diff --git a/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_on_holo.9.png b/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_on_holo.9.png new file mode 100644 index 0000000000000..279db1f92e8fb Binary files /dev/null and b/core/res/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_on_holo.9.png differ diff --git a/core/res/res/drawable-xhdpi/btn_keyboard_key_light_normal_holo.9.png b/core/res/res/drawable-xhdpi/btn_keyboard_key_light_normal_holo.9.png new file mode 100644 index 0000000000000..b26f1d27a87a1 Binary files /dev/null and b/core/res/res/drawable-xhdpi/btn_keyboard_key_light_normal_holo.9.png differ diff --git a/core/res/res/drawable-xhdpi/btn_keyboard_key_light_pressed_holo.9.png b/core/res/res/drawable-xhdpi/btn_keyboard_key_light_pressed_holo.9.png new file mode 100644 index 0000000000000..c23a4b22578d0 Binary files /dev/null and b/core/res/res/drawable-xhdpi/btn_keyboard_key_light_pressed_holo.9.png differ diff --git a/core/res/res/drawable/btn_keyboard_key_ics.xml b/core/res/res/drawable/btn_keyboard_key_ics.xml new file mode 100644 index 0000000000000..7335cc2991b85 --- /dev/null +++ b/core/res/res/drawable/btn_keyboard_key_ics.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/core/res/res/layout/keyguard_screen_password_landscape.xml b/core/res/res/layout/keyguard_screen_password_landscape.xml index 960907d439664..c2536b7cbfb0a 100644 --- a/core/res/res/layout/keyguard_screen_password_landscape.xml +++ b/core/res/res/layout/keyguard_screen_password_landscape.xml @@ -118,41 +118,36 @@ /> - + - - - - - - - + + - - - - + android:textColor="#ffffffff" + android:imeOptions="actionDone"/> @@ -139,7 +140,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4dip" - android:layout_marginRight="16dip" android:layout_gravity="center_horizontal" android:drawableLeft="@*android:drawable/lockscreen_emergency_button" style="?android:attr/buttonBarButtonStyle" @@ -153,7 +153,7 @@ layout="@layout/keyguard_transport_control" android:layout_row="0" android:layout_column="0" - android:layout_rowSpan="4" + android:layout_rowSpan="3" android:layout_columnSpan="1" android:layout_gravity="fill" /> diff --git a/core/res/res/values-land/dimens.xml b/core/res/res/values-land/dimens.xml index 388eb38000028..02bb3c82c4370 100644 --- a/core/res/res/values-land/dimens.xml +++ b/core/res/res/values-land/dimens.xml @@ -22,7 +22,7 @@ 47dip - 60dip + 50dip 2dip 72dp diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml index b3e50ea9aa70c..e534e9baa040e 100644 --- a/core/res/res/values/dimens.xml +++ b/core/res/res/values/dimens.xml @@ -50,12 +50,17 @@ 52dp 800dp - + + 56dip - + 56dip - + 4dip + + 3dip + + 9dip 135dip diff --git a/core/res/res/xml-land/password_kbd_qwerty.xml b/core/res/res/xml-land/password_kbd_qwerty.xml index fd8bd4907ed04..988f9ffa63945 100755 --- a/core/res/res/xml-land/password_kbd_qwerty.xml +++ b/core/res/res/xml-land/password_kbd_qwerty.xml @@ -20,8 +20,8 @@ diff --git a/core/res/res/xml-land/password_kbd_qwerty_shifted.xml b/core/res/res/xml-land/password_kbd_qwerty_shifted.xml index 9ff6fd7b2cccb..4941946d27d11 100755 --- a/core/res/res/xml-land/password_kbd_qwerty_shifted.xml +++ b/core/res/res/xml-land/password_kbd_qwerty_shifted.xml @@ -20,8 +20,8 @@ diff --git a/core/res/res/xml-mdpi/password_kbd_qwerty.xml b/core/res/res/xml-mdpi/password_kbd_qwerty.xml index 82a7c756152fd..265d7dcb49f94 100755 --- a/core/res/res/xml-mdpi/password_kbd_qwerty.xml +++ b/core/res/res/xml-mdpi/password_kbd_qwerty.xml @@ -20,8 +20,8 @@ diff --git a/core/res/res/xml-mdpi/password_kbd_qwerty_shifted.xml b/core/res/res/xml-mdpi/password_kbd_qwerty_shifted.xml index 9fff3ccf56351..7379f6916a3fe 100755 --- a/core/res/res/xml-mdpi/password_kbd_qwerty_shifted.xml +++ b/core/res/res/xml-mdpi/password_kbd_qwerty_shifted.xml @@ -20,8 +20,8 @@ diff --git a/core/res/res/xml-xlarge/password_kbd_numeric.xml b/core/res/res/xml-xlarge/password_kbd_numeric.xml index 0253122283185..3745672a58085 100755 --- a/core/res/res/xml-xlarge/password_kbd_numeric.xml +++ b/core/res/res/xml-xlarge/password_kbd_numeric.xml @@ -19,7 +19,8 @@ --> diff --git a/core/res/res/xml-xlarge/password_kbd_qwerty.xml b/core/res/res/xml-xlarge/password_kbd_qwerty.xml index 1009c9afbe32f..76b60195f40b1 100755 --- a/core/res/res/xml-xlarge/password_kbd_qwerty.xml +++ b/core/res/res/xml-xlarge/password_kbd_qwerty.xml @@ -22,8 +22,8 @@ android:keyWidth="8.272%p" keyboardHeight="@dimen/password_keyboard_height" android:keyHeight="@dimen/password_keyboard_key_height_alpha" - android:horizontalGap="0px" - android:verticalGap="0px"> + android:horizontalGap="@dimen/password_keyboard_horizontalGap" + android:verticalGap="@dimen/password_keyboard_verticalGap"> + android:horizontalGap="@dimen/password_keyboard_horizontalGap" + android:verticalGap="@dimen/password_keyboard_verticalGap"> + android:horizontalGap="@dimen/password_keyboard_horizontalGap" + android:verticalGap="@dimen/password_keyboard_verticalGap"> diff --git a/core/res/res/xml/password_kbd_numeric.xml b/core/res/res/xml/password_kbd_numeric.xml index 2270b8abdac34..2fd5aa0c7b621 100755 --- a/core/res/res/xml/password_kbd_numeric.xml +++ b/core/res/res/xml/password_kbd_numeric.xml @@ -19,7 +19,8 @@ --> diff --git a/core/res/res/xml/password_kbd_popup_template.xml b/core/res/res/xml/password_kbd_popup_template.xml index 9b853e26784ba..9fcac2ca88d6c 100644 --- a/core/res/res/xml/password_kbd_popup_template.xml +++ b/core/res/res/xml/password_kbd_popup_template.xml @@ -20,8 +20,8 @@ diff --git a/core/res/res/xml/password_kbd_qwerty.xml b/core/res/res/xml/password_kbd_qwerty.xml index 0a35040aa8451..dfe581ee3c283 100755 --- a/core/res/res/xml/password_kbd_qwerty.xml +++ b/core/res/res/xml/password_kbd_qwerty.xml @@ -20,8 +20,8 @@ diff --git a/core/res/res/xml/password_kbd_qwerty_shifted.xml b/core/res/res/xml/password_kbd_qwerty_shifted.xml index 9e9db818ba450..1366c584e6ed4 100755 --- a/core/res/res/xml/password_kbd_qwerty_shifted.xml +++ b/core/res/res/xml/password_kbd_qwerty_shifted.xml @@ -20,8 +20,8 @@ diff --git a/core/res/res/xml/password_kbd_symbols.xml b/core/res/res/xml/password_kbd_symbols.xml index 9a94930bbcd20..5876b0dbce6b5 100755 --- a/core/res/res/xml/password_kbd_symbols.xml +++ b/core/res/res/xml/password_kbd_symbols.xml @@ -20,8 +20,8 @@ diff --git a/core/res/res/xml/password_kbd_symbols_shift.xml b/core/res/res/xml/password_kbd_symbols_shift.xml index a972eb29f33f3..ee83544a4e3d1 100755 --- a/core/res/res/xml/password_kbd_symbols_shift.xml +++ b/core/res/res/xml/password_kbd_symbols_shift.xml @@ -20,8 +20,8 @@