diff options
| author | Jae Yong Sung <jysung@google.com> | 2010-08-05 10:44:27 -0700 |
|---|---|---|
| committer | Jae Yong Sung <jysung@google.com> | 2010-08-13 15:08:05 -0700 |
| commit | 8171b5182f5f07d33c9dfdf2dd8f0f6ae9588039 (patch) | |
| tree | 8c6c4b9de2a045809ce420a89edd76e6bf837f25 /core | |
| parent | aece2d0ca012144007870db9bb2cf0e360cbb973 (diff) | |
| download | frameworks_base-8171b5182f5f07d33c9dfdf2dd8f0f6ae9588039.zip frameworks_base-8171b5182f5f07d33c9dfdf2dd8f0f6ae9588039.tar.gz frameworks_base-8171b5182f5f07d33c9dfdf2dd8f0f6ae9588039.tar.bz2 | |
lock screen for xlarge
Change-Id: Iab9f53609bf24be774752a9960aaaa654d7a614f
Diffstat (limited to 'core')
39 files changed, 1772 insertions, 18 deletions
diff --git a/core/java/android/inputmethodservice/Keyboard.java b/core/java/android/inputmethodservice/Keyboard.java index 4814b0a..885a6b8 100755 --- a/core/java/android/inputmethodservice/Keyboard.java +++ b/core/java/android/inputmethodservice/Keyboard.java @@ -500,7 +500,30 @@ public class Keyboard { public Keyboard(Context context, int xmlLayoutResId) { this(context, xmlLayoutResId, 0); } - + + /** + * Creates a keyboard from the given xml key layout file. Weeds out rows + * that have a keyboard mode defined but don't match the specified mode. + * @param context the application or service context + * @param xmlLayoutResId the resource file that contains the keyboard layout and keys. + * @param modeId keyboard mode identifier + * @param width sets width of keyboard + * @param height sets height of keyboard + */ + public Keyboard(Context context, int xmlLayoutResId, int modeId, int width, int height) { + mDisplayWidth = width; + mDisplayHeight = height; + + mDefaultHorizontalGap = 0; + mDefaultWidth = mDisplayWidth / 10; + mDefaultVerticalGap = 0; + mDefaultHeight = mDefaultWidth; + mKeys = new ArrayList<Key>(); + mModifierKeys = new ArrayList<Key>(); + mKeyboardMode = modeId; + loadKeyboard(context, context.getResources().getXml(xmlLayoutResId)); + } + /** * Creates a keyboard from the given xml key layout file. Weeds out rows * that have a keyboard mode defined but don't match the specified mode. diff --git a/core/java/com/android/internal/widget/PasswordEntryKeyboard.java b/core/java/com/android/internal/widget/PasswordEntryKeyboard.java index e1a6737..facda36 100644 --- a/core/java/com/android/internal/widget/PasswordEntryKeyboard.java +++ b/core/java/com/android/internal/widget/PasswordEntryKeyboard.java @@ -67,8 +67,22 @@ public class PasswordEntryKeyboard extends Keyboard { this(context, xmlLayoutResId, 0); } + public PasswordEntryKeyboard(Context context, int xmlLayoutResId, int width, int height) { + this(context, xmlLayoutResId, 0, width, height); + } + public PasswordEntryKeyboard(Context context, int xmlLayoutResId, int mode) { super(context, xmlLayoutResId, mode); + init(context); + } + + public PasswordEntryKeyboard(Context context, int xmlLayoutResId, int mode, + int width, int height) { + super(context, xmlLayoutResId, mode, width, height); + init(context); + } + + private void init(Context context) { final Resources res = context.getResources(); mRes = res; mShiftIcon = res.getDrawable(R.drawable.sym_keyboard_shift); diff --git a/core/java/com/android/internal/widget/PasswordEntryKeyboardHelper.java b/core/java/com/android/internal/widget/PasswordEntryKeyboardHelper.java index 53720e4..384f7bc 100644 --- a/core/java/com/android/internal/widget/PasswordEntryKeyboardHelper.java +++ b/core/java/com/android/internal/widget/PasswordEntryKeyboardHelper.java @@ -54,10 +54,20 @@ public class PasswordEntryKeyboardHelper implements OnKeyboardActionListener { private Vibrator mVibrator; public PasswordEntryKeyboardHelper(Context context, KeyboardView keyboardView, View targetView) { + this(context, keyboardView, targetView, true); + } + + public PasswordEntryKeyboardHelper(Context context, KeyboardView keyboardView, View targetView, + boolean useFullScreenWidth) { mContext = context; mTargetView = targetView; mKeyboardView = keyboardView; - createKeyboards(); + if (useFullScreenWidth || mKeyboardView.getLayoutParams().width == -1) { + createKeyboards(); + } else { + createKeyboardsWithSpecificSize(mKeyboardView.getLayoutParams().width, + mKeyboardView.getLayoutParams().height); + } mKeyboardView.setOnKeyboardActionListener(this); mVibrator = new Vibrator(); } @@ -66,6 +76,29 @@ 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); + mQwertyKeyboard.enableShiftLock(); + + mQwertyKeyboardShifted = new PasswordEntryKeyboard(mContext, + R.xml.password_kbd_qwerty_shifted, + R.id.mode_normal, viewWidth, viewHeight); + mQwertyKeyboardShifted.enableShiftLock(); + mQwertyKeyboardShifted.setShifted(true); // always shifted. + + mSymbolsKeyboard = new PasswordEntryKeyboard(mContext, R.xml.password_kbd_symbols, + viewWidth, viewHeight); + mSymbolsKeyboard.enableShiftLock(); + + mSymbolsKeyboardShifted = new PasswordEntryKeyboard(mContext, + R.xml.password_kbd_symbols_shift, viewWidth, viewHeight); + mSymbolsKeyboardShifted.enableShiftLock(); + mSymbolsKeyboardShifted.setShifted(true); // always shifted + } + private void createKeyboards() { mNumericKeyboard = new PasswordEntryKeyboard(mContext, R.xml.password_kbd_numeric); mQwertyKeyboard = new PasswordEntryKeyboard(mContext, diff --git a/core/res/res/drawable-xlarge/ic_lock_idle_alarm.png b/core/res/res/drawable-xlarge/ic_lock_idle_alarm.png Binary files differnew file mode 100644 index 0000000..336a820 --- /dev/null +++ b/core/res/res/drawable-xlarge/ic_lock_idle_alarm.png diff --git a/core/res/res/drawable-xlarge/ic_lock_idle_charging.png b/core/res/res/drawable-xlarge/ic_lock_idle_charging.png Binary files differnew file mode 100644 index 0000000..ebef531 --- /dev/null +++ b/core/res/res/drawable-xlarge/ic_lock_idle_charging.png diff --git a/core/res/res/drawable-xlarge/ic_lock_idle_lock.png b/core/res/res/drawable-xlarge/ic_lock_idle_lock.png Binary files differnew file mode 100644 index 0000000..405e218 --- /dev/null +++ b/core/res/res/drawable-xlarge/ic_lock_idle_lock.png diff --git a/core/res/res/drawable-xlarge/ic_lock_idle_low_battery.png b/core/res/res/drawable-xlarge/ic_lock_idle_low_battery.png Binary files differnew file mode 100644 index 0000000..f349b63 --- /dev/null +++ b/core/res/res/drawable-xlarge/ic_lock_idle_low_battery.png diff --git a/core/res/res/layout-xlarge/keyguard.xml b/core/res/res/layout-xlarge/keyguard.xml new file mode 100644 index 0000000..ca629f8 --- /dev/null +++ b/core/res/res/layout-xlarge/keyguard.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* //device/apps/common/res/layout/keyguard.xml +** +** Copyright 2007, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:paddingLeft="20dip" + android:paddingTop="20dip" + android:paddingRight="20dip" + android:paddingBottom="20dip" + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="#ff000000"> + + <TextView + android:id="@+id/label" + android:textSize="16sp" + android:textStyle="bold" + android:textColor="#FFFFFFFF" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/keyguard_label_text" /> +</LinearLayout> + diff --git a/core/res/res/layout-xlarge/keyguard_screen_glogin_unlock.xml b/core/res/res/layout-xlarge/keyguard_screen_glogin_unlock.xml new file mode 100644 index 0000000..8a46546 --- /dev/null +++ b/core/res/res/layout-xlarge/keyguard_screen_glogin_unlock.xml @@ -0,0 +1,126 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2008, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License") +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:background="@android:color/background_dark" + > + <ScrollView + android:layout_width="match_parent" + android:layout_height="0px" + android:layout_weight="1" + android:layout_above="@+id/emergencyCall"> + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + > + + <TextView + android:id="@+id/topHeader" + android:layout_width="match_parent" + android:layout_height="64dip" + android:layout_alignParentTop="true" + android:layout_marginLeft="4dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center_vertical" + android:drawableLeft="@drawable/ic_lock_idle_lock" + android:drawablePadding="5dip" + /> + + <!-- spacer below header --> + <View + android:id="@+id/spacerTop" + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_below="@id/topHeader" + android:background="@drawable/divider_horizontal_dark"/> + + <TextView + android:id="@+id/instructions" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@+id/spacerTop" + android:layout_marginTop="8dip" + android:layout_marginLeft="9dip" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="@android:string/lockscreen_glogin_instructions" + /> + + <EditText + android:id="@+id/login" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/instructions" + android:layout_marginTop="8dip" + android:layout_marginLeft="7dip" + android:layout_marginRight="7dip" + android:hint="@android:string/lockscreen_glogin_username_hint" + android:inputType="textEmailAddress" + /> + + <EditText + android:id="@+id/password" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/login" + android:layout_marginTop="15dip" + android:layout_marginLeft="7dip" + android:layout_marginRight="7dip" + android:inputType="textPassword" + android:hint="@android:string/lockscreen_glogin_password_hint" + android:nextFocusRight="@+id/ok" + android:nextFocusDown="@+id/ok" + /> + + <!-- ok below password, aligned to right of screen --> + <Button + android:id="@+id/ok" + android:layout_width="85dip" + android:layout_height="wrap_content" + android:layout_below="@id/password" + android:layout_marginTop="7dip" + android:layout_marginRight="7dip" + android:layout_alignParentRight="true" + android:text="@android:string/lockscreen_glogin_submit_button" + /> + + </RelativeLayout> + </ScrollView> + + <!-- spacer above emergency call --> + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_marginBottom="4dip" + + android:background="@drawable/divider_horizontal_dark"/> + + <!-- emergency call button at bottom center --> + <Button + android:id="@+id/emergencyCall" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:drawableLeft="@drawable/ic_emergency" + android:drawablePadding="8dip" + android:text="@android:string/lockscreen_emergency_call" + /> + +</LinearLayout> diff --git a/core/res/res/layout-xlarge/keyguard_screen_lock.xml b/core/res/res/layout-xlarge/keyguard_screen_lock.xml new file mode 100644 index 0000000..733a350 --- /dev/null +++ b/core/res/res/layout-xlarge/keyguard_screen_lock.xml @@ -0,0 +1,220 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2008, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License") +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<!-- This is the general lock screen which shows information about the + state of the device, as well as instructions on how to get past it + depending on the state of the device. It is the same for landscape + and portrait.--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:gravity="bottom" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="#ff800000" + > + + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:layout_marginBottom="15dip" + android:layout_marginLeft="15dip" + android:layout_marginRight="15dip" + android:paddingTop="20dip" + android:paddingBottom="20dip" + android:background="@android:drawable/popup_full_dark" + > + + <!-- when sim is present --> + <TextView android:id="@+id/headerSimOk1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:textSize="34sp"/> + <TextView android:id="@+id/headerSimOk2" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:textSize="34sp"/> + + <!-- when sim is missing / locked --> + <TextView android:id="@+id/headerSimBad1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:text="@android:string/lockscreen_missing_sim_message" + android:textAppearance="?android:attr/textAppearanceLarge"/> + <TextView android:id="@+id/headerSimBad2" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="7dip" + android:layout_marginBottom="7dip" + android:gravity="center" + android:text="@android:string/lockscreen_missing_sim_instructions" + android:textAppearance="?android:attr/textAppearanceSmall"/> + + <!-- spacer after carrier info / sim messages --> + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_marginTop="8dip" + android:background="@android:drawable/divider_horizontal_dark"/> + + <!-- time and date --> + <TextView android:id="@+id/time" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:textSize="34sp"/> + + <TextView android:id="@+id/date" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:textSize="18sp"/> + + <!-- spacer after time and date --> + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_marginBottom="8dip" + android:background="@android:drawable/divider_horizontal_dark" + /> + + <!-- battery info --> + <LinearLayout android:id="@+id/batteryInfo" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + > + + <ImageView android:id="@+id/batteryInfoIcon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="6dip" + android:baselineAligned="true" + android:gravity="center" + /> + + <TextView android:id="@+id/batteryInfoText" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="18sp" + android:gravity="center" + /> + + </LinearLayout> + + <!-- spacer after battery info --> + <View android:id="@+id/batteryInfoSpacer" + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_marginTop="8dip" + android:layout_marginBottom="8dip" + android:background="@android:drawable/divider_horizontal_dark" + /> + + <!-- next alarm info --> + + <LinearLayout android:id="@+id/nextAlarmInfo" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + > + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="6dip" + android:baselineAligned="true" + android:src="@android:drawable/ic_lock_idle_alarm" + android:gravity="center" + /> + + <TextView android:id="@+id/nextAlarmText" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="18sp" + android:gravity="center" + /> + </LinearLayout> + + <!-- spacer after alarm info --> + <View android:id="@+id/nextAlarmSpacer" + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_marginTop="8dip" + android:layout_marginBottom="8dip" + android:background="@android:drawable/divider_horizontal_dark"/> + + <!-- lock icon with 'screen locked' message + (shown when SIM card is present) --> + <LinearLayout android:id="@+id/screenLockedInfo" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + > + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="6dip" + android:baselineAligned="true" + android:src="@android:drawable/ic_lock_idle_lock" + android:gravity="center" + /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="18sp" + android:text="@android:string/lockscreen_screen_locked" + android:gravity="center" + /> + </LinearLayout> + + <!-- message about how to unlock + (shown when SIM card is present) --> + <TextView android:id="@+id/lockInstructions" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="5dip" + android:gravity="center" + android:textSize="14sp"/> + + + <!-- emergency call button shown when sim is missing or PUKd --> + <Button + android:id="@+id/emergencyCallButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="5dip" + android:layout_marginTop="5dip" + android:layout_gravity="center_horizontal" + android:drawableLeft="@drawable/ic_emergency" + android:drawablePadding="8dip" + android:text="@android:string/lockscreen_emergency_call" + /> + + </LinearLayout> +</LinearLayout> diff --git a/core/res/res/layout-xlarge/keyguard_screen_password_landscape.xml b/core/res/res/layout-xlarge/keyguard_screen_password_landscape.xml new file mode 100644 index 0000000..c2d87a2 --- /dev/null +++ b/core/res/res/layout-xlarge/keyguard_screen_password_landscape.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2008, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License") +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal" + > + + <!-- left side: status and emergency call button --> + <LinearLayout + android:layout_height="match_parent" + android:layout_weight="1" + android:layout_width="0dip" + android:orientation="vertical" + android:gravity="center_vertical" + > + <include layout="@layout/keyguard_screen_status_land" /> + </LinearLayout> + + <!-- right side: password --> + <LinearLayout + android:layout_width="0dip" + android:layout_height="match_parent" + android:orientation="vertical" + android:layout_weight="1" + android:gravity="center"> + + <!-- Password entry field --> + <EditText android:id="@+id/passwordEntry" + android:layout_height="wrap_content" + android:layout_width="330dip" + android:singleLine="true" + android:textStyle="normal" + android:inputType="textPassword" + android:gravity="center" + android:layout_gravity="center" + android:textSize="24sp" + android:layout_marginTop="120dip" + android:layout_marginBottom="5dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:background="@drawable/password_field_default" + android:textColor="#ffffffff" + /> + + <!-- Numeric keyboard --> + <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard" + android:layout_width="330dip" + android:layout_height="260dip" + android:background="#00000000" + android:keyBackground="@drawable/btn_keyboard_key_fulltrans" + /> + <!-- Alphanumeric keyboard --> + <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboardAlpha" + android:layout_width="450dip" + android:layout_height="230dip" + android:background="#00000000" + android:keyBackground="@drawable/btn_keyboard_key_fulltrans" + /> + + <!-- emergency call button --> + <Button + android:id="@+id/emergencyCall" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:drawableLeft="@drawable/ic_emergency" + android:drawablePadding="8dip" + android:text="@string/lockscreen_emergency_call" + android:visibility="gone" + style="@style/Widget.Button.Transparent" + /> + + </LinearLayout> +</LinearLayout> diff --git a/core/res/res/layout-xlarge/keyguard_screen_password_portrait.xml b/core/res/res/layout-xlarge/keyguard_screen_password_portrait.xml new file mode 100644 index 0000000..0927e59 --- /dev/null +++ b/core/res/res/layout-xlarge/keyguard_screen_password_portrait.xml @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2008, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License") +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + > + + <!-- left side: status and emergency call button --> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:orientation="vertical" + android:gravity="center_vertical" + > + <include layout="@layout/keyguard_screen_status_land" /> + </LinearLayout> + + <!-- right side: password --> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:orientation="vertical" + android:gravity="center"> + + <!-- Password entry field --> + <EditText android:id="@+id/passwordEntry" + android:layout_height="wrap_content" + android:layout_width="330dip" + android:singleLine="true" + android:textStyle="normal" + android:inputType="textPassword" + android:gravity="center" + android:layout_gravity="center" + android:textSize="24sp" + android:layout_marginTop="120dip" + android:layout_marginBottom="5dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:background="@drawable/password_field_default" + android:textColor="#ffffffff" + /> + + <!-- Numeric keyboard --> + <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard" + android:layout_width="330dip" + android:layout_height="260dip" + android:background="#00000000" + android:keyBackground="@drawable/btn_keyboard_key_fulltrans" + /> + <!-- Alphanumeric keyboard --> + <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboardAlpha" + android:layout_width="450dip" + android:layout_height="230dip" + android:background="#00000000" + android:keyBackground="@drawable/btn_keyboard_key_fulltrans" + /> + + <!-- emergency call button --> + <Button + android:id="@+id/emergencyCall" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:drawableLeft="@drawable/ic_emergency" + android:drawablePadding="8dip" + android:text="@string/lockscreen_emergency_call" + android:visibility="gone" + style="@style/Widget.Button.Transparent" + /> + + </LinearLayout> +</LinearLayout>
\ No newline at end of file diff --git a/core/res/res/layout-xlarge/keyguard_screen_sim_pin_landscape.xml b/core/res/res/layout-xlarge/keyguard_screen_sim_pin_landscape.xml new file mode 100644 index 0000000..b8cbe51 --- /dev/null +++ b/core/res/res/layout-xlarge/keyguard_screen_sim_pin_landscape.xml @@ -0,0 +1,122 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2008, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License") +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/background_dark" + > + + + <!-- right side --> + <!-- header text ('Enter Pin Code') --> + <TextView android:id="@+id/headerText" + android:layout_above="@+id/carrier" + android:layout_centerHorizontal="true" + android:layout_marginBottom="30dip" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="24sp" + /> + + <!-- Carrier info --> + <TextView android:id="@+id/carrier" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_above="@+id/pinDisplayGroup" + android:layout_marginTop="9dip" + android:gravity="left|bottom" + android:singleLine="true" + android:ellipsize="marquee" + android:textAppearance="?android:attr/textAppearanceMedium" + /> + + <!-- displays dots as user enters pin --> + <LinearLayout android:id="@+id/pinDisplayGroup" + android:orientation="horizontal" + android:layout_centerInParent="true" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:addStatesFromChildren="true" + android:gravity="center_vertical" + android:baselineAligned="false" + android:paddingRight="0dip" + android:layout_marginRight="30dip" + android:layout_marginLeft="30dip" + android:background="@android:drawable/edit_text" + > + + <EditText android:id="@+id/pinDisplay" + android:layout_width="0dip" + android:layout_weight="1" + android:layout_height="match_parent" + android:maxLines="1" + android:background="@null" + android:textSize="32sp" + android:inputType="textPassword" + /> + + <ImageButton android:id="@+id/backspace" + android:src="@android:drawable/ic_input_delete" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginTop="2dip" + android:layout_marginRight="2dip" + android:layout_marginBottom="2dip" + android:gravity="center" + /> + + </LinearLayout> + + <LinearLayout + android:orientation="horizontal" + android:layout_alignParentBottom="true" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="8dip" + android:layout_marginLeft="8dip" + android:layout_marginRight="8dip"> + + <Button android:id="@+id/ok" + android:text="@android:string/ok" + android:layout_alignParentBottom="true" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1.0" + android:layout_marginBottom="8dip" + android:layout_marginRight="8dip" + android:textSize="18sp" + /> + + <Button android:id="@+id/emergencyCall" + android:text="@android:string/lockscreen_emergency_call" + android:layout_alignParentBottom="true" + android:layout_centerHorizontal="true" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1.0" + android:layout_marginBottom="8dip" + android:layout_marginLeft="8dip" + android:textSize="18sp" + android:drawableLeft="@drawable/ic_emergency" + android:drawablePadding="8dip" + /> + </LinearLayout> + +</RelativeLayout> diff --git a/core/res/res/layout-xlarge/keyguard_screen_sim_pin_portrait.xml b/core/res/res/layout-xlarge/keyguard_screen_sim_pin_portrait.xml new file mode 100644 index 0000000..009148f --- /dev/null +++ b/core/res/res/layout-xlarge/keyguard_screen_sim_pin_portrait.xml @@ -0,0 +1,119 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2008, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License") +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:background="@android:color/background_dark" + android:gravity="center_horizontal"> + + <LinearLayout android:id="@+id/topDisplayGroup" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <!-- header text ('Enter Pin Code') --> + <TextView android:id="@+id/headerText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceLarge"/> + + <!-- Carrier info --> + <TextView android:id="@+id/carrier" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="9dip" + android:gravity="center" + android:singleLine="true" + android:ellipsize="marquee" + android:textAppearance="?android:attr/textAppearanceMedium"/> + + <!-- password entry --> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_marginRight="6dip" + android:layout_marginLeft="6dip" + android:gravity="center_vertical" + android:background="@android:drawable/edit_text"> + + <!-- displays dots as user enters pin --> + <TextView android:id="@+id/pinDisplay" + 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_marginRight="-3dip" + android:layout_marginBottom="-3dip" + /> + </LinearLayout> + + </LinearLayout> + + <include + android:id="@+id/keyPad" + layout="@android:layout/twelve_key_entry" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/topDisplayGroup" + android:layout_marginTop="10dip" + /> + + <!-- spacer below keypad --> + <View + android:id="@+id/spacerBottom" + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_marginTop="6dip" + android:layout_above="@id/emergencyCall" + 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="match_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> + +</LinearLayout> diff --git a/core/res/res/layout-xlarge/keyguard_screen_status_land.xml b/core/res/res/layout-xlarge/keyguard_screen_status_land.xml new file mode 100644 index 0000000..8589862 --- /dev/null +++ b/core/res/res/layout-xlarge/keyguard_screen_status_land.xml @@ -0,0 +1,127 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2010, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License") +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<!-- Status to show on the left side of lock screen --> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="140dip" + android:layout_marginTop="20dip" + android:gravity="left" + > + + <TextView + android:id="@+id/carrier" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="17sp" + android:drawablePadding="4dip" + android:layout_marginTop="32dip" + android:singleLine="true" + android:ellipsize="marquee" + /> + + <com.android.internal.widget.DigitalClock android:id="@+id/time" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:layout_marginTop="8dip" + android:layout_marginBottom="8dip" + > + + <TextView android:id="@+id/timeDisplay" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:ellipsize="none" + android:textSize="120sp" + android:textAppearance="?android:attr/textAppearanceMedium" + android:shadowColor="#C0000000" + android:shadowDx="0" + android:shadowDy="0" + android:shadowRadius="3.0" + android:layout_marginBottom="6dip" + /> + + + <TextView android:id="@+id/am_pm" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toRightOf="@id/timeDisplay" + android:layout_alignBaseline="@id/timeDisplay" + android:singleLine="true" + android:ellipsize="none" + android:textSize="30sp" + android:layout_marginLeft="8dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:shadowColor="#C0000000" + android:shadowDx="0" + android:shadowDy="0" + android:shadowRadius="3.0" + /> + + </com.android.internal.widget.DigitalClock> + + <TextView + android:id="@+id/date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/time" + android:layout_marginTop="5dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="32sp" + /> + + <!-- used for instructions such as "draw pattern to unlock", the next alarm, and charging + status. --> + <TextView + android:id="@+id/status2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="32sp" + android:layout_marginTop="50dip" + android:drawablePadding="4dip" + /> + <TextView + android:id="@+id/status1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="15dip" + android:textSize="32sp" + android:textAppearance="?android:attr/textAppearanceMedium" + /> + + <TextView + android:id="@+id/propertyOf" + android:lineSpacingExtra="8dip" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="22sp" + android:layout_marginTop="50dip" + android:singleLine="false" + android:visibility="invisible" + /> +</LinearLayout> diff --git a/core/res/res/layout-xlarge/keyguard_screen_status_port.xml b/core/res/res/layout-xlarge/keyguard_screen_status_port.xml new file mode 100644 index 0000000..8589862 --- /dev/null +++ b/core/res/res/layout-xlarge/keyguard_screen_status_port.xml @@ -0,0 +1,127 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2010, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License") +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<!-- Status to show on the left side of lock screen --> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="140dip" + android:layout_marginTop="20dip" + android:gravity="left" + > + + <TextView + android:id="@+id/carrier" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="17sp" + android:drawablePadding="4dip" + android:layout_marginTop="32dip" + android:singleLine="true" + android:ellipsize="marquee" + /> + + <com.android.internal.widget.DigitalClock android:id="@+id/time" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:layout_marginTop="8dip" + android:layout_marginBottom="8dip" + > + + <TextView android:id="@+id/timeDisplay" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:ellipsize="none" + android:textSize="120sp" + android:textAppearance="?android:attr/textAppearanceMedium" + android:shadowColor="#C0000000" + android:shadowDx="0" + android:shadowDy="0" + android:shadowRadius="3.0" + android:layout_marginBottom="6dip" + /> + + + <TextView android:id="@+id/am_pm" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toRightOf="@id/timeDisplay" + android:layout_alignBaseline="@id/timeDisplay" + android:singleLine="true" + android:ellipsize="none" + android:textSize="30sp" + android:layout_marginLeft="8dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:shadowColor="#C0000000" + android:shadowDx="0" + android:shadowDy="0" + android:shadowRadius="3.0" + /> + + </com.android.internal.widget.DigitalClock> + + <TextView + android:id="@+id/date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/time" + android:layout_marginTop="5dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="32sp" + /> + + <!-- used for instructions such as "draw pattern to unlock", the next alarm, and charging + status. --> + <TextView + android:id="@+id/status2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="32sp" + android:layout_marginTop="50dip" + android:drawablePadding="4dip" + /> + <TextView + android:id="@+id/status1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="15dip" + android:textSize="32sp" + android:textAppearance="?android:attr/textAppearanceMedium" + /> + + <TextView + android:id="@+id/propertyOf" + android:lineSpacingExtra="8dip" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="22sp" + android:layout_marginTop="50dip" + android:singleLine="false" + android:visibility="invisible" + /> +</LinearLayout> diff --git a/core/res/res/layout-xlarge/keyguard_screen_tab_unlock.xml b/core/res/res/layout-xlarge/keyguard_screen_tab_unlock.xml new file mode 100644 index 0000000..4761800 --- /dev/null +++ b/core/res/res/layout-xlarge/keyguard_screen_tab_unlock.xml @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2009, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License") +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<!-- This is the general lock screen which shows information about the + state of the device, as well as instructions on how to get past it + depending on the state of the device. It is the same for landscape + and portrait.--> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="#70000000" + android:gravity="center_horizontal" + android:id="@+id/root"> + + <!-- left side: status and emergency call button --> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:orientation="vertical" + android:gravity="center_vertical" + > + <include layout="@layout/keyguard_screen_status_land" /> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:orientation="vertical" + > + <TextView + android:id="@+id/screenLocked" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/status2" + android:layout_marginLeft="24dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_marginTop="12dip" + android:drawablePadding="4dip" + /> + + <com.android.internal.widget.SlidingTab + android:id="@+id/tab_selector" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_marginBottom="80dip" + /> + + <!-- "emergency calls only" shown when sim is missing or PUKd --> + <TextView + android:id="@+id/emergencyCallText" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/carrier" + android:layout_alignParentRight="true" + android:layout_marginTop="0dip" + android:layout_marginRight="8dip" + android:text="@string/emergency_calls_only" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/white" + /> + + <!-- emergency call button shown when sim is PUKd and tab_selector is + hidden --> + <Button + android:id="@+id/emergencyCallButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:drawableLeft="@drawable/ic_emergency" + android:layout_centerInParent="true" + android:layout_alignParentBottom="true" + android:layout_marginBottom="80dip" + style="@style/Widget.Button.Transparent" + android:drawablePadding="8dip" + android:visibility="gone" + /> + </LinearLayout> + +</RelativeLayout> + diff --git a/core/res/res/layout-xlarge/keyguard_screen_tab_unlock_land.xml b/core/res/res/layout-xlarge/keyguard_screen_tab_unlock_land.xml new file mode 100644 index 0000000..bb398f6 --- /dev/null +++ b/core/res/res/layout-xlarge/keyguard_screen_tab_unlock_land.xml @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2009, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License") +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<!-- This is the general lock screen which shows information about the + state of the device, as well as instructions on how to get past it + depending on the state of the device.--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal" + android:background="#70000000" + android:id="@+id/root"> + + <!-- left side: status and emergency call button --> + <LinearLayout + android:layout_height="match_parent" + android:layout_weight="1" + android:layout_width="0dip" + android:orientation="vertical" + android:gravity="center_vertical" + > + <include layout="@layout/keyguard_screen_status_land" /> + </LinearLayout> + + <!-- right side --> + <LinearLayout + android:layout_height="match_parent" + android:layout_weight="1" + android:layout_width="0dip" + android:orientation="horizontal" + android:gravity="center_horizontal" + > + <TextView + android:id="@+id/screenLocked" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/status2" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center" + android:layout_marginTop="12dip" + android:drawablePadding="4dip" + /> + + <com.android.internal.widget.SlidingTab + android:id="@+id/tab_selector" + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginRight="0dip" + android:layout_weight="1.0" + /> + + <!-- "emergency calls only" shown when sim is missing or PUKd --> + <TextView + android:id="@+id/emergencyCallText" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_marginTop="20dip" + android:text="@string/emergency_calls_only" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/white" + /> + + <!-- emergency call button shown when sim is PUKd and tab_selector is + hidden --> + <Button + android:id="@+id/emergencyCallButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:drawableLeft="@drawable/ic_emergency" + style="@style/Widget.Button.Transparent" + android:drawablePadding="8dip" + android:layout_marginRight="80dip" + android:visibility="gone" + /> + + </LinearLayout> +</LinearLayout> diff --git a/core/res/res/layout-xlarge/keyguard_screen_unlock_landscape.xml b/core/res/res/layout-xlarge/keyguard_screen_unlock_landscape.xml new file mode 100644 index 0000000..42636ad --- /dev/null +++ b/core/res/res/layout-xlarge/keyguard_screen_unlock_landscape.xml @@ -0,0 +1,106 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2008, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License") +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<!-- This is the screen that shows the 9 circle unlock widget and instructs + the user how to unlock their device, or make an emergency call. This + is the portrait layout. --> + +<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="match_parent" + > + + <!-- left side: status and emergency call button --> + <LinearLayout + android:layout_height="match_parent" + android:layout_weight="1" + android:layout_width="0dip" + android:orientation="vertical" + android:gravity="center_vertical" + > + + <include layout="@layout/keyguard_screen_status_land" /> + + <!-- footer --> + <FrameLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="140dip" + > + + <!-- option 1: a single emergency call button --> + <RelativeLayout android:id="@+id/footerNormal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="left" + > + <Button android:id="@+id/emergencyCallAlone" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/lockscreen_emergency_call" + style="@style/Widget.Button.Transparent" + android:drawableLeft="@drawable/ic_emergency" + android:drawablePadding="8dip" + android:visibility="gone" + /> + </RelativeLayout> + + <!-- option 2: an emergency call button, and a 'forgot pattern?' button --> + <LinearLayout android:id="@+id/footerForgotPattern" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="left" + > + <Button android:id="@+id/forgotPattern" + android:layout_width="match_parent" + android:layout_height="wrap_content" + style="@style/Widget.Button.Transparent" + /> + <Button android:id="@+id/emergencyCallTogether" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/lockscreen_emergency_call" + style="@style/Widget.Button.Transparent" + android:drawableLeft="@drawable/ic_emergency" + android:drawablePadding="8dip" + android:visibility="gone" + /> + </LinearLayout> + </FrameLayout> + </LinearLayout> + + <!-- right side: lock pattern --> + <LinearLayout + android:layout_weight="1" + android:layout_width="0dip" + android:layout_height="match_parent" + android:gravity="center" + > + <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" + android:layout_width="350dip" + android:layout_height="350dip" + android:layout_marginTop="90dip" + android:layout_marginRight="90dip" + /> + </LinearLayout> + +</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> diff --git a/core/res/res/layout-xlarge/keyguard_screen_unlock_portrait.xml b/core/res/res/layout-xlarge/keyguard_screen_unlock_portrait.xml new file mode 100644 index 0000000..aeed79b --- /dev/null +++ b/core/res/res/layout-xlarge/keyguard_screen_unlock_portrait.xml @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2008, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License") +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + > + + <!-- left side: status and emergency call button --> + <LinearLayout + android:layout_height="0dip" + android:layout_weight="1" + android:layout_width="match_parent" + android:orientation="vertical" + android:gravity="center_vertical" + > + + <include layout="@layout/keyguard_screen_status_port" /> + + <!-- footer --> + <FrameLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="140dip" + > + + <!-- option 1: a single emergency call button --> + <RelativeLayout android:id="@+id/footerNormal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="left" + > + <Button android:id="@+id/emergencyCallAlone" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/lockscreen_emergency_call" + style="@style/Widget.Button.Transparent" + android:drawableLeft="@drawable/ic_emergency" + android:drawablePadding="8dip" + android:visibility="gone" + /> + </RelativeLayout> + + <!-- option 2: an emergency call button, and a 'forgot pattern?' button --> + <LinearLayout android:id="@+id/footerForgotPattern" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="left" + > + <Button android:id="@+id/forgotPattern" + android:layout_width="match_parent" + android:layout_height="wrap_content" + style="@style/Widget.Button.Transparent" + /> + <Button android:id="@+id/emergencyCallTogether" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/lockscreen_emergency_call" + style="@style/Widget.Button.Transparent" + android:drawableLeft="@drawable/ic_emergency" + android:drawablePadding="8dip" + android:visibility="gone" + /> + </LinearLayout> + </FrameLayout> + </LinearLayout> + + <!-- right side: lock pattern --> + <LinearLayout + android:layout_weight="1" + android:layout_width="match_parent" + android:layout_height="0dip" + android:gravity="center" + > + <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" + android:layout_width="350dip" + android:layout_height="350dip" + android:layout_marginTop="50dip" + /> + </LinearLayout> + +</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> + diff --git a/core/res/res/layout/keyguard_screen_password_landscape.xml b/core/res/res/layout/keyguard_screen_password_landscape.xml index ab675c7..3d52f71 100644 --- a/core/res/res/layout/keyguard_screen_password_landscape.xml +++ b/core/res/res/layout/keyguard_screen_password_landscape.xml @@ -28,7 +28,7 @@ android:layout_height="wrap_content" android:orientation="horizontal"> <!-- "Enter PIN(Password) to unlock" --> - <TextView android:id="@+id/enter_password_label" + <TextView android:id="@+id/status1" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" diff --git a/core/res/res/layout/keyguard_screen_password_portrait.xml b/core/res/res/layout/keyguard_screen_password_portrait.xml index 9ee8781..af8a3ef 100644 --- a/core/res/res/layout/keyguard_screen_password_portrait.xml +++ b/core/res/res/layout/keyguard_screen_password_portrait.xml @@ -24,7 +24,7 @@ android:gravity="center_horizontal"> <!-- "Enter PIN(Password) to unlock" --> - <TextView android:id="@+id/enter_password_label" + <TextView android:id="@+id/status1" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" diff --git a/core/res/res/values-xlarge/config.xml b/core/res/res/values-xlarge/config.xml index c5a53b2..e92ed11 100644 --- a/core/res/res/values-xlarge/config.xml +++ b/core/res/res/values-xlarge/config.xml @@ -24,5 +24,10 @@ interface. This name is in the ComponentName flattened format (package/class) --> <string name="config_statusBarComponent">com.android.systemui/com.android.systemui.statusbar.tablet.TabletStatusBarService</string> <bool name="config_statusBarCanHide">false</bool> + + <!-- Show sliding tab before lockscreen --> + <bool name="config_enableSlidingTabFirst">false</bool> + <!-- Enable lockscreen rotation --> + <bool name="config_enableLockScreenRotation">true</bool> </resources> diff --git a/core/res/res/values-xlarge/dimens.xml b/core/res/res/values-xlarge/dimens.xml index b3fdf46..bc1ae58 100644 --- a/core/res/res/values-xlarge/dimens.xml +++ b/core/res/res/values-xlarge/dimens.xml @@ -22,5 +22,10 @@ <!-- Height of the status bar --> <dimen name="status_bar_icon_size">50dip</dimen> <!-- Margin at the edge of the screen to ignore touch events for in the windowshade. --> + + <!-- Default height of a key in the password keyboard for alpha --> + <dimen name="password_keyboard_key_height_alpha">0.35in</dimen> + <!-- Default height of a key in the password keyboard for numeric --> + <dimen name="password_keyboard_key_height_numeric">0.47in</dimen> </resources> diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index cf2b423..91e9a92 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -272,6 +272,12 @@ <!-- Allow the menu hard key to be disabled in LockScreen on some devices --> <bool name="config_disableMenuKeyInLockScreen">false</bool> + <!-- Show sliding tab before lockscreen --> + <bool name="config_enableSlidingTabFirst">true</bool> + + <!-- Diable lockscreen rotation by default --> + <bool name="config_enableLockScreenRotation">false</bool> + <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support. The N entries of this array define N + 1 zones as follows: diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml index 679e642..fdafaf1 100644 --- a/core/res/res/values/dimens.xml +++ b/core/res/res/values/dimens.xml @@ -41,8 +41,10 @@ <dimen name="fastscroll_thumb_width">64dp</dimen> <!-- Height of the fastscroll thumb --> <dimen name="fastscroll_thumb_height">52dp</dimen> - <!-- Default height of a key in the password keyboard --> - <dimen name="password_keyboard_key_height">56dip</dimen> + <!-- Default height of a key in the password keyboard for alpha --> + <dimen name="password_keyboard_key_height_alpha">56dip</dimen> + <!-- Default height of a key in the password keyboard for numeric --> + <dimen name="password_keyboard_key_height_numeric">56dip</dimen> <!-- Default correction for the space key in the password keyboard --> <dimen name="password_keyboard_spacebar_vertical_correction">4dip</dimen> <!-- Distance between the text base line and virtual finger position used to position cursor --> diff --git a/core/res/res/xml-land/password_kbd_qwerty.xml b/core/res/res/xml-land/password_kbd_qwerty.xml index 700c527..fd8bd49 100755 --- a/core/res/res/xml-land/password_kbd_qwerty.xml +++ b/core/res/res/xml-land/password_kbd_qwerty.xml @@ -22,7 +22,7 @@ android:keyWidth="10%p" android:horizontalGap="0px" android:verticalGap="0px" - android:keyHeight="@dimen/password_keyboard_key_height" + android:keyHeight="@dimen/password_keyboard_key_height_alpha" > <Row> 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 1e37b6c..9ff6fd7 100755 --- a/core/res/res/xml-land/password_kbd_qwerty_shifted.xml +++ b/core/res/res/xml-land/password_kbd_qwerty_shifted.xml @@ -22,7 +22,7 @@ android:keyWidth="10%p" android:horizontalGap="0px" android:verticalGap="0px" - android:keyHeight="@dimen/password_keyboard_key_height" + android:keyHeight="@dimen/password_keyboard_key_height_alpha" > <Row> diff --git a/core/res/res/xml-mdpi/password_kbd_qwerty.xml b/core/res/res/xml-mdpi/password_kbd_qwerty.xml index bae1b42..82a7c75 100755 --- a/core/res/res/xml-mdpi/password_kbd_qwerty.xml +++ b/core/res/res/xml-mdpi/password_kbd_qwerty.xml @@ -22,7 +22,7 @@ android:keyWidth="10%p" android:horizontalGap="0px" android:verticalGap="0px" - android:keyHeight="@dimen/password_keyboard_key_height" + android:keyHeight="@dimen/password_keyboard_key_height_alpha" > <Row> 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 612df9c..9fff3cc 100755 --- a/core/res/res/xml-mdpi/password_kbd_qwerty_shifted.xml +++ b/core/res/res/xml-mdpi/password_kbd_qwerty_shifted.xml @@ -22,7 +22,7 @@ android:keyWidth="10%p" android:horizontalGap="0px" android:verticalGap="0px" - android:keyHeight="@dimen/password_keyboard_key_height" + android:keyHeight="@dimen/password_keyboard_key_height_alpha" > <Row> diff --git a/core/res/res/xml-xlarge/password_kbd_qwerty.xml b/core/res/res/xml-xlarge/password_kbd_qwerty.xml new file mode 100755 index 0000000..0a35040 --- /dev/null +++ b/core/res/res/xml-xlarge/password_kbd_qwerty.xml @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2008, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<Keyboard xmlns:android="http://schemas.android.com/apk/res/android" + android:keyWidth="10%p" + android:horizontalGap="0px" + android:verticalGap="0px" + android:keyHeight="@dimen/password_keyboard_key_height_alpha" + > + + <Row android:rowEdgeFlags="top"> + <Key android:keyLabel="1" android:keyEdgeFlags="left"/> + <Key android:keyLabel="2"/> + <Key android:keyLabel="3"/> + <Key android:keyLabel="4"/> + <Key android:keyLabel="5"/> + <Key android:keyLabel="6"/> + <Key android:keyLabel="7"/> + <Key android:keyLabel="8"/> + <Key android:keyLabel="9"/> + <Key android:keyLabel="0" android:keyEdgeFlags="right"/> + </Row> + + <Row> + <Key android:keyLabel="q" android:keyEdgeFlags="left"/> + <Key android:keyLabel="w"/> + <Key android:keyLabel="e"/> + <Key android:keyLabel="r"/> + <Key android:keyLabel="t"/> + <Key android:keyLabel="y"/> + <Key android:keyLabel="u"/> + <Key android:keyLabel="i"/> + <Key android:keyLabel="o"/> + <Key android:keyLabel="p" android:keyEdgeFlags="right"/> + </Row> + + <Row> + <Key android:keyLabel="a" android:horizontalGap="5%p" + android:keyEdgeFlags="left"/> + <Key android:keyLabel="s"/> + <Key android:keyLabel="d"/> + <Key android:keyLabel="f"/> + <Key android:keyLabel="g"/> + <Key android:keyLabel="h"/> + <Key android:keyLabel="j"/> + <Key android:keyLabel="k"/> + <Key android:keyLabel="l" android:keyEdgeFlags="right"/> + </Row> + + <Row> + <Key android:codes="-1" android:keyIcon="@drawable/sym_keyboard_shift" + android:keyWidth="15%p" android:isModifier="true" + android:iconPreview="@drawable/sym_keyboard_feedback_shift" + android:isSticky="true" android:keyEdgeFlags="left"/> + <Key android:keyLabel="z"/> + <Key android:keyLabel="x"/> + <Key android:keyLabel="c"/> + <Key android:keyLabel="v"/> + <Key android:keyLabel="b"/> + <Key android:keyLabel="n"/> + <Key android:keyLabel="m"/> + <Key android:codes="-5" android:keyIcon="@drawable/sym_keyboard_delete" + android:keyWidth="15%p" android:keyEdgeFlags="right" + android:iconPreview="@drawable/sym_keyboard_feedback_delete" + android:isRepeatable="true"/> + </Row> + + <Row android:keyboardMode="@+id/mode_normal" android:rowEdgeFlags="bottom"> + <Key android:codes="-2" android:keyLabel="@string/password_keyboard_label_symbol_key" + android:keyWidth="20%p" android:keyEdgeFlags="left"/> + <Key android:keyLabel="," /> + <Key android:keyLabel="-" /> + <Key android:codes="32" android:keyIcon="@drawable/sym_keyboard_space" + android:iconPreview="@drawable/sym_keyboard_feedback_space" + android:keyWidth="20%p"/> + <Key android:keyLabel="=" /> + <Key android:keyLabel="." + android:keyWidth="10%p"/> + <Key android:codes="10" android:keyIcon="@drawable/sym_keyboard_ok" + android:iconPreview="@drawable/sym_keyboard_feedback_ok" + android:keyWidth="20%p" android:keyEdgeFlags="right"/> + </Row> + +</Keyboard> + diff --git a/core/res/res/xml-xlarge/password_kbd_qwerty_shifted.xml b/core/res/res/xml-xlarge/password_kbd_qwerty_shifted.xml new file mode 100755 index 0000000..9e9db81 --- /dev/null +++ b/core/res/res/xml-xlarge/password_kbd_qwerty_shifted.xml @@ -0,0 +1,101 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2008, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<Keyboard xmlns:android="http://schemas.android.com/apk/res/android" + android:keyWidth="10%p" + android:horizontalGap="0px" + android:verticalGap="0px" + android:keyHeight="@dimen/password_keyboard_key_height_alpha" + > + + <Row android:rowEdgeFlags="top"> + <Key android:keyLabel="\@" android:keyEdgeFlags="left"/> + <Key android:keyLabel="\#"/> + <Key android:keyLabel="$"/> + <Key android:keyLabel="%"/> + <Key android:keyLabel="&"/> + <Key android:keyLabel="*"/> + <Key android:keyLabel="-"/> + <Key android:keyLabel="+"/> + <Key android:keyLabel="("/> + <Key android:keyLabel=")" android:keyEdgeFlags="right"/> + </Row> + + <Row> + <Key android:keyLabel="q" android:keyEdgeFlags="left"/> + <Key android:keyLabel="w"/> + <Key android:keyLabel="e"/> + <Key android:keyLabel="r"/> + <Key android:keyLabel="t"/> + <Key android:keyLabel="y"/> + <Key android:keyLabel="u"/> + <Key android:keyLabel="i"/> + <Key android:keyLabel="o"/> + <Key android:keyLabel="p" android:keyEdgeFlags="right"/> + </Row> + + <Row> + <Key android:keyLabel="a" android:horizontalGap="5%p" + android:keyEdgeFlags="left"/> + <Key android:keyLabel="s"/> + <Key android:keyLabel="d"/> + <Key android:keyLabel="f"/> + <Key android:keyLabel="g"/> + <Key android:keyLabel="h"/> + <Key android:keyLabel="j"/> + <Key android:keyLabel="k"/> + <Key android:keyLabel="l" android:keyEdgeFlags="right"/> + </Row> + + <Row> + <Key android:codes="-1" android:keyIcon="@drawable/sym_keyboard_shift" + android:keyWidth="15%p" android:isModifier="true" + android:iconPreview="@drawable/sym_keyboard_feedback_shift" + android:isSticky="true" android:keyEdgeFlags="left"/> + <Key android:keyLabel="z"/> + <Key android:keyLabel="x"/> + <Key android:keyLabel="c"/> + <Key android:keyLabel="v"/> + <Key android:keyLabel="b"/> + <Key android:keyLabel="n"/> + <Key android:keyLabel="m"/> + <Key android:codes="-5" android:keyIcon="@drawable/sym_keyboard_delete" + android:keyWidth="15%p" android:keyEdgeFlags="right" + android:iconPreview="@drawable/sym_keyboard_feedback_delete" + android:isRepeatable="true"/> + </Row> + + <Row android:keyboardMode="@+id/mode_normal" android:rowEdgeFlags="bottom"> + <Key android:codes="-2" android:keyLabel="@string/password_keyboard_label_symbol_key" + android:keyWidth="20%p" android:keyEdgeFlags="left"/> + <Key android:keyLabel="," /> + <Key android:keyLabel="_" /> + <Key android:codes="32" android:keyIcon="@drawable/sym_keyboard_space" + android:iconPreview="@drawable/sym_keyboard_feedback_space" + android:keyWidth="20%p"/> + <Key android:keyLabel="+" /> + <Key android:keyLabel="."/> + <Key android:codes="10" android:keyIcon="@drawable/sym_keyboard_ok" + android:iconPreview="@drawable/sym_keyboard_feedback_ok" + android:keyWidth="20%p" android:keyEdgeFlags="right"/> + </Row> + +</Keyboard> + diff --git a/core/res/res/xml/password_kbd_extension.xml b/core/res/res/xml/password_kbd_extension.xml index 28b7efe..f3fa57b 100755 --- a/core/res/res/xml/password_kbd_extension.xml +++ b/core/res/res/xml/password_kbd_extension.xml @@ -22,7 +22,7 @@ android:keyWidth="10%p" android:horizontalGap="0px" android:verticalGap="0px" - android:keyHeight="@dimen/password_keyboard_key_height" + android:keyHeight="@dimen/password_keyboard_key_height_alpha" > <Row android:rowEdgeFlags="top"> diff --git a/core/res/res/xml/password_kbd_numeric.xml b/core/res/res/xml/password_kbd_numeric.xml index bdd8afb..2270b8a 100755 --- a/core/res/res/xml/password_kbd_numeric.xml +++ b/core/res/res/xml/password_kbd_numeric.xml @@ -19,9 +19,8 @@ --> <Keyboard xmlns:android="http://schemas.android.com/apk/res/android" android:keyWidth="33.33%p" - android:horizontalGap="2px" android:verticalGap="0px" - android:keyHeight="@dimen/password_keyboard_key_height" + android:keyHeight="@dimen/password_keyboard_key_height_numeric" > <Row android:rowEdgeFlags="top"> diff --git a/core/res/res/xml/password_kbd_popup_template.xml b/core/res/res/xml/password_kbd_popup_template.xml index 5ddfd3e..9b853e2 100644 --- a/core/res/res/xml/password_kbd_popup_template.xml +++ b/core/res/res/xml/password_kbd_popup_template.xml @@ -22,6 +22,6 @@ android:keyWidth="10%p" android:horizontalGap="0px" android:verticalGap="0px" - android:keyHeight="@dimen/password_keyboard_key_height" + android:keyHeight="@dimen/password_keyboard_key_height_alpha" > </Keyboard> diff --git a/core/res/res/xml/password_kbd_qwerty.xml b/core/res/res/xml/password_kbd_qwerty.xml index 5fa9b8a..0a35040 100755 --- a/core/res/res/xml/password_kbd_qwerty.xml +++ b/core/res/res/xml/password_kbd_qwerty.xml @@ -22,7 +22,7 @@ android:keyWidth="10%p" android:horizontalGap="0px" android:verticalGap="0px" - android:keyHeight="@dimen/password_keyboard_key_height" + android:keyHeight="@dimen/password_keyboard_key_height_alpha" > <Row android:rowEdgeFlags="top"> diff --git a/core/res/res/xml/password_kbd_qwerty_shifted.xml b/core/res/res/xml/password_kbd_qwerty_shifted.xml index e491aff..9e9db81 100755 --- a/core/res/res/xml/password_kbd_qwerty_shifted.xml +++ b/core/res/res/xml/password_kbd_qwerty_shifted.xml @@ -22,7 +22,7 @@ android:keyWidth="10%p" android:horizontalGap="0px" android:verticalGap="0px" - android:keyHeight="@dimen/password_keyboard_key_height" + android:keyHeight="@dimen/password_keyboard_key_height_alpha" > <Row android:rowEdgeFlags="top"> diff --git a/core/res/res/xml/password_kbd_symbols.xml b/core/res/res/xml/password_kbd_symbols.xml index 9901526..9a94930 100755 --- a/core/res/res/xml/password_kbd_symbols.xml +++ b/core/res/res/xml/password_kbd_symbols.xml @@ -22,7 +22,7 @@ android:keyWidth="10%p" android:horizontalGap="0px" android:verticalGap="0px" - android:keyHeight="@dimen/password_keyboard_key_height" + android:keyHeight="@dimen/password_keyboard_key_height_alpha" > <Row android:rowEdgeFlags="top"> diff --git a/core/res/res/xml/password_kbd_symbols_shift.xml b/core/res/res/xml/password_kbd_symbols_shift.xml index 5b73914..a972eb2 100755 --- a/core/res/res/xml/password_kbd_symbols_shift.xml +++ b/core/res/res/xml/password_kbd_symbols_shift.xml @@ -22,7 +22,7 @@ android:keyWidth="10%p" android:horizontalGap="0px" android:verticalGap="0px" - android:keyHeight="@dimen/password_keyboard_key_height" + android:keyHeight="@dimen/password_keyboard_key_height_alpha" > <Row android:rowEdgeFlags="top"> |
