diff --git a/core/java/com/android/internal/widget/PasswordEntryKeyboardHelper.java b/core/java/com/android/internal/widget/PasswordEntryKeyboardHelper.java index 26518ebdd2a7d..f8332c48783a4 100644 --- a/core/java/com/android/internal/widget/PasswordEntryKeyboardHelper.java +++ b/core/java/com/android/internal/widget/PasswordEntryKeyboardHelper.java @@ -31,6 +31,7 @@ import android.view.KeyCharacterMap; import android.view.KeyEvent; import android.view.View; import android.view.ViewGroup; +import android.view.ViewGroup.LayoutParams; import android.view.ViewRootImpl; import com.android.internal.R; @@ -55,23 +56,56 @@ public class PasswordEntryKeyboardHelper implements OnKeyboardActionListener { private long[] mVibratePattern; private boolean mEnableHaptics = false; + private static final int NUMERIC = 0; + private static final int QWERTY = 1; + private static final int QWERTY_SHIFTED = 2; + private static final int SYMBOLS = 3; + private static final int SYMBOLS_SHIFTED = 4; + + int mLayouts[] = new int[] { + R.xml.password_kbd_numeric, + R.xml.password_kbd_qwerty, + R.xml.password_kbd_qwerty_shifted, + R.xml.password_kbd_symbols, + R.xml.password_kbd_symbols_shift + }; + + private boolean mUsingScreenWidth; + public PasswordEntryKeyboardHelper(Context context, KeyboardView keyboardView, View targetView) { - this(context, keyboardView, targetView, true); + this(context, keyboardView, targetView, true, null); } public PasswordEntryKeyboardHelper(Context context, KeyboardView keyboardView, View targetView, boolean useFullScreenWidth) { + this(context, keyboardView, targetView, useFullScreenWidth, null); + } + + public PasswordEntryKeyboardHelper(Context context, KeyboardView keyboardView, View targetView, + boolean useFullScreenWidth, int layouts[]) { mContext = context; mTargetView = targetView; mKeyboardView = keyboardView; - if (useFullScreenWidth - || mKeyboardView.getLayoutParams().width == ViewGroup.LayoutParams.MATCH_PARENT) { - createKeyboards(); - } else { - createKeyboardsWithSpecificSize(mKeyboardView.getLayoutParams().width, - mKeyboardView.getLayoutParams().height); - } mKeyboardView.setOnKeyboardActionListener(this); + mUsingScreenWidth = useFullScreenWidth; + if (layouts != null) { + if (layouts.length != mLayouts.length) { + throw new RuntimeException("Wrong number of layouts"); + } + for (int i = 0; i < mLayouts.length; i++) { + mLayouts[i] = layouts[i]; + } + } + createKeyboards(); + } + + public void createKeyboards() { + LayoutParams lp = mKeyboardView.getLayoutParams(); + if (mUsingScreenWidth || lp.width == ViewGroup.LayoutParams.MATCH_PARENT) { + createKeyboardsWithDefaultWidth(); + } else { + createKeyboardsWithSpecificSize(lp.width, lp.height); + } } public void setEnableHaptics(boolean enabled) { @@ -82,46 +116,40 @@ public class PasswordEntryKeyboardHelper implements OnKeyboardActionListener { return mKeyboardMode == KEYBOARD_MODE_ALPHA; } - private void createKeyboardsWithSpecificSize(int viewWidth, int viewHeight) { - mNumericKeyboard = new PasswordEntryKeyboard(mContext, R.xml.password_kbd_numeric, - viewWidth, viewHeight); - mQwertyKeyboard = new PasswordEntryKeyboard(mContext, - R.xml.password_kbd_qwerty, R.id.mode_normal, viewWidth, viewHeight); + private void createKeyboardsWithSpecificSize(int width, int height) { + mNumericKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[NUMERIC], width, height); + mQwertyKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[QWERTY], R.id.mode_normal, + width, height); mQwertyKeyboard.enableShiftLock(); - mQwertyKeyboardShifted = new PasswordEntryKeyboard(mContext, - R.xml.password_kbd_qwerty_shifted, - R.id.mode_normal, viewWidth, viewHeight); + mQwertyKeyboardShifted = new PasswordEntryKeyboard(mContext, mLayouts[QWERTY_SHIFTED], + R.id.mode_normal, width, height); mQwertyKeyboardShifted.enableShiftLock(); mQwertyKeyboardShifted.setShifted(true); // always shifted. - mSymbolsKeyboard = new PasswordEntryKeyboard(mContext, R.xml.password_kbd_symbols, - viewWidth, viewHeight); + mSymbolsKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[SYMBOLS], width, height); mSymbolsKeyboard.enableShiftLock(); - mSymbolsKeyboardShifted = new PasswordEntryKeyboard(mContext, - R.xml.password_kbd_symbols_shift, viewWidth, viewHeight); + mSymbolsKeyboardShifted = new PasswordEntryKeyboard(mContext, mLayouts[SYMBOLS_SHIFTED], + width, height); mSymbolsKeyboardShifted.enableShiftLock(); mSymbolsKeyboardShifted.setShifted(true); // always shifted } - private void createKeyboards() { - mNumericKeyboard = new PasswordEntryKeyboard(mContext, R.xml.password_kbd_numeric); - mQwertyKeyboard = new PasswordEntryKeyboard(mContext, - R.xml.password_kbd_qwerty, R.id.mode_normal); + private void createKeyboardsWithDefaultWidth() { + mNumericKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[NUMERIC]); + mQwertyKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[QWERTY], R.id.mode_normal); mQwertyKeyboard.enableShiftLock(); - mQwertyKeyboardShifted = new PasswordEntryKeyboard(mContext, - R.xml.password_kbd_qwerty_shifted, + mQwertyKeyboardShifted = new PasswordEntryKeyboard(mContext, mLayouts[QWERTY_SHIFTED], R.id.mode_normal); mQwertyKeyboardShifted.enableShiftLock(); mQwertyKeyboardShifted.setShifted(true); // always shifted. - mSymbolsKeyboard = new PasswordEntryKeyboard(mContext, R.xml.password_kbd_symbols); + mSymbolsKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[SYMBOLS]); mSymbolsKeyboard.enableShiftLock(); - mSymbolsKeyboardShifted = new PasswordEntryKeyboard(mContext, - R.xml.password_kbd_symbols_shift); + mSymbolsKeyboardShifted = new PasswordEntryKeyboard(mContext, mLayouts[SYMBOLS_SHIFTED]); mSymbolsKeyboardShifted.enableShiftLock(); mSymbolsKeyboardShifted.setShifted(true); // always shifted } diff --git a/core/res/res/drawable-hdpi/ic_lockscreen_alarm.png b/core/res/res/drawable-hdpi/ic_lockscreen_alarm.png new file mode 100644 index 0000000000000..d7a8cfcba3c35 Binary files /dev/null and b/core/res/res/drawable-hdpi/ic_lockscreen_alarm.png differ diff --git a/core/res/res/drawable-hdpi/ic_lockscreen_sim.png b/core/res/res/drawable-hdpi/ic_lockscreen_sim.png new file mode 100644 index 0000000000000..7cf9e3699ceb1 Binary files /dev/null and b/core/res/res/drawable-hdpi/ic_lockscreen_sim.png differ diff --git a/core/res/res/drawable-hdpi/lockscreen_protection_pattern.png b/core/res/res/drawable-hdpi/lockscreen_protection_pattern.png new file mode 100644 index 0000000000000..681d8be1f8c63 Binary files /dev/null and b/core/res/res/drawable-hdpi/lockscreen_protection_pattern.png differ diff --git a/core/res/res/drawable-hdpi/sym_keyboard_delete.png b/core/res/res/drawable-hdpi/sym_keyboard_delete.png old mode 100755 new mode 100644 index 59d78bec06339..476d90238aa6e Binary files a/core/res/res/drawable-hdpi/sym_keyboard_delete.png and b/core/res/res/drawable-hdpi/sym_keyboard_delete.png differ diff --git a/core/res/res/drawable-hdpi/sym_keyboard_enter.png b/core/res/res/drawable-hdpi/sym_keyboard_enter.png new file mode 100644 index 0000000000000..d118af289663b Binary files /dev/null and b/core/res/res/drawable-hdpi/sym_keyboard_enter.png differ diff --git a/core/res/res/drawable-hdpi/sym_keyboard_num0_no_plus.png b/core/res/res/drawable-hdpi/sym_keyboard_num0_no_plus.png index 0e5f1e2979d67..ad81bb3ed795d 100644 Binary files a/core/res/res/drawable-hdpi/sym_keyboard_num0_no_plus.png and b/core/res/res/drawable-hdpi/sym_keyboard_num0_no_plus.png differ diff --git a/core/res/res/drawable-hdpi/sym_keyboard_num1.png b/core/res/res/drawable-hdpi/sym_keyboard_num1.png old mode 100755 new mode 100644 index 0fc03efa51f52..8d2468c5e4563 Binary files a/core/res/res/drawable-hdpi/sym_keyboard_num1.png and b/core/res/res/drawable-hdpi/sym_keyboard_num1.png differ diff --git a/core/res/res/drawable-hdpi/sym_keyboard_num2.png b/core/res/res/drawable-hdpi/sym_keyboard_num2.png old mode 100755 new mode 100644 index 283560b353437..cfa972b31d53c Binary files a/core/res/res/drawable-hdpi/sym_keyboard_num2.png and b/core/res/res/drawable-hdpi/sym_keyboard_num2.png differ diff --git a/core/res/res/drawable-hdpi/sym_keyboard_num3.png b/core/res/res/drawable-hdpi/sym_keyboard_num3.png old mode 100755 new mode 100644 index 9a3b3294b90d5..141833ac15260 Binary files a/core/res/res/drawable-hdpi/sym_keyboard_num3.png and b/core/res/res/drawable-hdpi/sym_keyboard_num3.png differ diff --git a/core/res/res/drawable-hdpi/sym_keyboard_num4.png b/core/res/res/drawable-hdpi/sym_keyboard_num4.png old mode 100755 new mode 100644 index f13ff1ae91dbd..07df14d3c98a9 Binary files a/core/res/res/drawable-hdpi/sym_keyboard_num4.png and b/core/res/res/drawable-hdpi/sym_keyboard_num4.png differ diff --git a/core/res/res/drawable-hdpi/sym_keyboard_num5.png b/core/res/res/drawable-hdpi/sym_keyboard_num5.png old mode 100755 new mode 100644 index c251329fa4ed1..fbcc9bffbf92e Binary files a/core/res/res/drawable-hdpi/sym_keyboard_num5.png and b/core/res/res/drawable-hdpi/sym_keyboard_num5.png differ diff --git a/core/res/res/drawable-hdpi/sym_keyboard_num6.png b/core/res/res/drawable-hdpi/sym_keyboard_num6.png old mode 100755 new mode 100644 index 4acba4c9103d5..9513b331dea8c Binary files a/core/res/res/drawable-hdpi/sym_keyboard_num6.png and b/core/res/res/drawable-hdpi/sym_keyboard_num6.png differ diff --git a/core/res/res/drawable-hdpi/sym_keyboard_num7.png b/core/res/res/drawable-hdpi/sym_keyboard_num7.png old mode 100755 new mode 100644 index 14931c18c53f6..5ad25d8e10e57 Binary files a/core/res/res/drawable-hdpi/sym_keyboard_num7.png and b/core/res/res/drawable-hdpi/sym_keyboard_num7.png differ diff --git a/core/res/res/drawable-hdpi/sym_keyboard_num8.png b/core/res/res/drawable-hdpi/sym_keyboard_num8.png old mode 100755 new mode 100644 index d4973fdc900ff..97d5c0e1d79f4 Binary files a/core/res/res/drawable-hdpi/sym_keyboard_num8.png and b/core/res/res/drawable-hdpi/sym_keyboard_num8.png differ diff --git a/core/res/res/drawable-hdpi/sym_keyboard_num9.png b/core/res/res/drawable-hdpi/sym_keyboard_num9.png old mode 100755 new mode 100644 index 49cec66f4d277..a7d6a836c7a7c Binary files a/core/res/res/drawable-hdpi/sym_keyboard_num9.png and b/core/res/res/drawable-hdpi/sym_keyboard_num9.png differ diff --git a/core/res/res/drawable-mdpi/ic_lockscreen_alarm.png b/core/res/res/drawable-mdpi/ic_lockscreen_alarm.png new file mode 100644 index 0000000000000..330ade15fb78d Binary files /dev/null and b/core/res/res/drawable-mdpi/ic_lockscreen_alarm.png differ diff --git a/core/res/res/drawable-mdpi/ic_lockscreen_sim.png b/core/res/res/drawable-mdpi/ic_lockscreen_sim.png new file mode 100644 index 0000000000000..2e259c3e17c17 Binary files /dev/null and b/core/res/res/drawable-mdpi/ic_lockscreen_sim.png differ diff --git a/core/res/res/drawable-mdpi/lockscreen_protection_pattern.png b/core/res/res/drawable-mdpi/lockscreen_protection_pattern.png new file mode 100644 index 0000000000000..30bcea537afd6 Binary files /dev/null and b/core/res/res/drawable-mdpi/lockscreen_protection_pattern.png differ diff --git a/core/res/res/drawable-mdpi/sym_keyboard_delete.png b/core/res/res/drawable-mdpi/sym_keyboard_delete.png index 43a033ead97df..74b836a12da0f 100644 Binary files a/core/res/res/drawable-mdpi/sym_keyboard_delete.png and b/core/res/res/drawable-mdpi/sym_keyboard_delete.png differ diff --git a/core/res/res/drawable-mdpi/sym_keyboard_enter.png b/core/res/res/drawable-mdpi/sym_keyboard_enter.png new file mode 100644 index 0000000000000..0fa53acfe8683 Binary files /dev/null and b/core/res/res/drawable-mdpi/sym_keyboard_enter.png differ diff --git a/core/res/res/drawable-mdpi/sym_keyboard_num0_no_plus.png b/core/res/res/drawable-mdpi/sym_keyboard_num0_no_plus.png index d23114daebd79..9fefaeafaab36 100644 Binary files a/core/res/res/drawable-mdpi/sym_keyboard_num0_no_plus.png and b/core/res/res/drawable-mdpi/sym_keyboard_num0_no_plus.png differ diff --git a/core/res/res/drawable-mdpi/sym_keyboard_num1.png b/core/res/res/drawable-mdpi/sym_keyboard_num1.png index aaac11b0c7f49..1f37e32ff67a1 100644 Binary files a/core/res/res/drawable-mdpi/sym_keyboard_num1.png and b/core/res/res/drawable-mdpi/sym_keyboard_num1.png differ diff --git a/core/res/res/drawable-mdpi/sym_keyboard_num2.png b/core/res/res/drawable-mdpi/sym_keyboard_num2.png index 4372eb8f08c4c..f899f78083f3e 100644 Binary files a/core/res/res/drawable-mdpi/sym_keyboard_num2.png and b/core/res/res/drawable-mdpi/sym_keyboard_num2.png differ diff --git a/core/res/res/drawable-mdpi/sym_keyboard_num3.png b/core/res/res/drawable-mdpi/sym_keyboard_num3.png index 6f54c850f5aeb..6a0f5ef98ad0e 100644 Binary files a/core/res/res/drawable-mdpi/sym_keyboard_num3.png and b/core/res/res/drawable-mdpi/sym_keyboard_num3.png differ diff --git a/core/res/res/drawable-mdpi/sym_keyboard_num4.png b/core/res/res/drawable-mdpi/sym_keyboard_num4.png index 3e50bb957cec0..3a25bcd33545c 100644 Binary files a/core/res/res/drawable-mdpi/sym_keyboard_num4.png and b/core/res/res/drawable-mdpi/sym_keyboard_num4.png differ diff --git a/core/res/res/drawable-mdpi/sym_keyboard_num5.png b/core/res/res/drawable-mdpi/sym_keyboard_num5.png index c39ef4404fc11..064d4bf38b722 100644 Binary files a/core/res/res/drawable-mdpi/sym_keyboard_num5.png and b/core/res/res/drawable-mdpi/sym_keyboard_num5.png differ diff --git a/core/res/res/drawable-mdpi/sym_keyboard_num6.png b/core/res/res/drawable-mdpi/sym_keyboard_num6.png index ea88ceb94ea9b..61ee0a650b479 100644 Binary files a/core/res/res/drawable-mdpi/sym_keyboard_num6.png and b/core/res/res/drawable-mdpi/sym_keyboard_num6.png differ diff --git a/core/res/res/drawable-mdpi/sym_keyboard_num7.png b/core/res/res/drawable-mdpi/sym_keyboard_num7.png index ce800ba429808..b931d7bfffeeb 100644 Binary files a/core/res/res/drawable-mdpi/sym_keyboard_num7.png and b/core/res/res/drawable-mdpi/sym_keyboard_num7.png differ diff --git a/core/res/res/drawable-mdpi/sym_keyboard_num8.png b/core/res/res/drawable-mdpi/sym_keyboard_num8.png index 1a8ff94bf73aa..f8d2891589e07 100644 Binary files a/core/res/res/drawable-mdpi/sym_keyboard_num8.png and b/core/res/res/drawable-mdpi/sym_keyboard_num8.png differ diff --git a/core/res/res/drawable-mdpi/sym_keyboard_num9.png b/core/res/res/drawable-mdpi/sym_keyboard_num9.png index 8b344c0a6861b..056d06761660d 100644 Binary files a/core/res/res/drawable-mdpi/sym_keyboard_num9.png and b/core/res/res/drawable-mdpi/sym_keyboard_num9.png differ diff --git a/core/res/res/drawable-xhdpi/ic_lockscreen_alarm.png b/core/res/res/drawable-xhdpi/ic_lockscreen_alarm.png new file mode 100644 index 0000000000000..e6cceefe6a5bf Binary files /dev/null and b/core/res/res/drawable-xhdpi/ic_lockscreen_alarm.png differ diff --git a/core/res/res/drawable-xhdpi/ic_lockscreen_sim.png b/core/res/res/drawable-xhdpi/ic_lockscreen_sim.png new file mode 100644 index 0000000000000..f4de96adae303 Binary files /dev/null and b/core/res/res/drawable-xhdpi/ic_lockscreen_sim.png differ diff --git a/core/res/res/drawable-xhdpi/lockscreen_protection_pattern.png b/core/res/res/drawable-xhdpi/lockscreen_protection_pattern.png new file mode 100644 index 0000000000000..c13afe2b795c3 Binary files /dev/null and b/core/res/res/drawable-xhdpi/lockscreen_protection_pattern.png differ diff --git a/core/res/res/drawable-xhdpi/sym_keyboard_delete.png b/core/res/res/drawable-xhdpi/sym_keyboard_delete.png index ca936d1985c6d..45c14aa78c1e0 100644 Binary files a/core/res/res/drawable-xhdpi/sym_keyboard_delete.png and b/core/res/res/drawable-xhdpi/sym_keyboard_delete.png differ diff --git a/core/res/res/drawable-xhdpi/sym_keyboard_enter.png b/core/res/res/drawable-xhdpi/sym_keyboard_enter.png new file mode 100644 index 0000000000000..3b034fd89e315 Binary files /dev/null and b/core/res/res/drawable-xhdpi/sym_keyboard_enter.png differ diff --git a/core/res/res/drawable-xhdpi/sym_keyboard_num0_no_plus.png b/core/res/res/drawable-xhdpi/sym_keyboard_num0_no_plus.png index 95b542d11d070..cdd256d7179de 100644 Binary files a/core/res/res/drawable-xhdpi/sym_keyboard_num0_no_plus.png and b/core/res/res/drawable-xhdpi/sym_keyboard_num0_no_plus.png differ diff --git a/core/res/res/drawable-xhdpi/sym_keyboard_num1.png b/core/res/res/drawable-xhdpi/sym_keyboard_num1.png index decd5843838c6..d81d4b58f74a4 100644 Binary files a/core/res/res/drawable-xhdpi/sym_keyboard_num1.png and b/core/res/res/drawable-xhdpi/sym_keyboard_num1.png differ diff --git a/core/res/res/drawable-xhdpi/sym_keyboard_num2.png b/core/res/res/drawable-xhdpi/sym_keyboard_num2.png index 37948fbfcd3b2..8ae9fafae3f6b 100644 Binary files a/core/res/res/drawable-xhdpi/sym_keyboard_num2.png and b/core/res/res/drawable-xhdpi/sym_keyboard_num2.png differ diff --git a/core/res/res/drawable-xhdpi/sym_keyboard_num3.png b/core/res/res/drawable-xhdpi/sym_keyboard_num3.png index 0e36ff2bf6cb3..ed6e90ab727c6 100644 Binary files a/core/res/res/drawable-xhdpi/sym_keyboard_num3.png and b/core/res/res/drawable-xhdpi/sym_keyboard_num3.png differ diff --git a/core/res/res/drawable-xhdpi/sym_keyboard_num4.png b/core/res/res/drawable-xhdpi/sym_keyboard_num4.png index f469a4a8d44bc..5cff39f925d64 100644 Binary files a/core/res/res/drawable-xhdpi/sym_keyboard_num4.png and b/core/res/res/drawable-xhdpi/sym_keyboard_num4.png differ diff --git a/core/res/res/drawable-xhdpi/sym_keyboard_num5.png b/core/res/res/drawable-xhdpi/sym_keyboard_num5.png index 941f877360345..1c9358efd393c 100644 Binary files a/core/res/res/drawable-xhdpi/sym_keyboard_num5.png and b/core/res/res/drawable-xhdpi/sym_keyboard_num5.png differ diff --git a/core/res/res/drawable-xhdpi/sym_keyboard_num6.png b/core/res/res/drawable-xhdpi/sym_keyboard_num6.png index eceec55334e7b..9a5cb6fac58f7 100644 Binary files a/core/res/res/drawable-xhdpi/sym_keyboard_num6.png and b/core/res/res/drawable-xhdpi/sym_keyboard_num6.png differ diff --git a/core/res/res/drawable-xhdpi/sym_keyboard_num7.png b/core/res/res/drawable-xhdpi/sym_keyboard_num7.png index 5b5d2055f22c3..1bd5c6b6dc4ac 100644 Binary files a/core/res/res/drawable-xhdpi/sym_keyboard_num7.png and b/core/res/res/drawable-xhdpi/sym_keyboard_num7.png differ diff --git a/core/res/res/drawable-xhdpi/sym_keyboard_num8.png b/core/res/res/drawable-xhdpi/sym_keyboard_num8.png index ea776ebf8d3fe..9a3315258a400 100644 Binary files a/core/res/res/drawable-xhdpi/sym_keyboard_num8.png and b/core/res/res/drawable-xhdpi/sym_keyboard_num8.png differ diff --git a/core/res/res/drawable-xhdpi/sym_keyboard_num9.png b/core/res/res/drawable-xhdpi/sym_keyboard_num9.png index 29047fb01021f..caa3113d170ce 100644 Binary files a/core/res/res/drawable-xhdpi/sym_keyboard_num9.png and b/core/res/res/drawable-xhdpi/sym_keyboard_num9.png differ diff --git a/core/res/res/layout-land/keyguard_host_view.xml b/core/res/res/layout-land/keyguard_host_view.xml index 01e1866e4f4dd..595762e6c4535 100644 --- a/core/res/res/layout-land/keyguard_host_view.xml +++ b/core/res/res/layout-land/keyguard_host_view.xml @@ -24,13 +24,15 @@ android:id="@+id/keyguard_host_view" android:layout_width="match_parent" android:layout_height="match_parent" + android:gravity="center_vertical" android:orientation="horizontal"> @@ -44,7 +46,9 @@ android:id="@+id/view_flipper" android:layout_width="0dip" android:layout_height="match_parent" - android:layout_weight="1" + android:layout_weight="0.55" + android:layout_marginLeft="8dip" + android:layout_marginRight="8dip" android:gravity="center"> diff --git a/core/res/res/layout/keyguard_emergency_carrier_area.xml b/core/res/res/layout/keyguard_emergency_carrier_area.xml new file mode 100644 index 0000000000000..62cbac40a33ef --- /dev/null +++ b/core/res/res/layout/keyguard_emergency_carrier_area.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + diff --git a/core/res/res/layout/keyguard_navigation.xml b/core/res/res/layout/keyguard_navigation.xml index a03310152119a..d52bcb449b4d0 100644 --- a/core/res/res/layout/keyguard_navigation.xml +++ b/core/res/res/layout/keyguard_navigation.xml @@ -17,39 +17,19 @@ */ --> + android:id="@+id/keyguard_click_area" + android:gravity="center"> - + - - - - - - - + android:layout_gravity="start" + android:ellipsize="marquee" + android:layout_marginEnd="4dip" + android:layout_marginStart="4dip" + android:textSize="22dip" + android:textAppearance="?android:attr/textAppearanceMedium"/> diff --git a/core/res/res/layout/keyguard_password_view.xml b/core/res/res/layout/keyguard_password_view.xml index 4ea471eae298a..e8ca98bb3a33b 100644 --- a/core/res/res/layout/keyguard_password_view.xml +++ b/core/res/res/layout/keyguard_password_view.xml @@ -24,7 +24,16 @@ android:layout_height="match_parent" android:gravity="center_horizontal"> - + + + + + + + diff --git a/core/res/res/layout/keyguard_pattern_view.xml b/core/res/res/layout/keyguard_pattern_view.xml index 356bce3f41ba8..311f77f11ea24 100644 --- a/core/res/res/layout/keyguard_pattern_view.xml +++ b/core/res/res/layout/keyguard_pattern_view.xml @@ -28,18 +28,22 @@ android:layout_height="match_parent" android:gravity="center_horizontal"> - + - + -