diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 7f04228fdb4..9523c61f020 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -689,23 +689,13 @@
-
-
+
-
-
+
-
-
+
-
-
+
-
+ android:layout_height="fill_parent">
@@ -61,12 +62,31 @@
/>
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/res/layout-xlarge-land/choose_lock_pattern.xml b/res/layout-xlarge-land/choose_lock_pattern.xml
index fa2498f3442..e2cbdab0bbe 100644
--- a/res/layout-xlarge-land/choose_lock_pattern.xml
+++ b/res/layout-xlarge-land/choose_lock_pattern.xml
@@ -21,62 +21,69 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
-
-
-
-
-
+ android:layout_weight="1">
+
+
+
+
+ android:layout_width="542dip"
+ android:layout_height="78dip"
+ android:layout_marginTop="88dip"
+ android:layout_alignParentTop="true"
+ android:layout_toRightOf="@id/lockPattern"
+ android:layout_marginLeft="100dip"
+ android:textSize="22sp"/>
-
-
-
-
+
-
+
+
-
+
+
+
diff --git a/res/layout-xlarge-land/confirm_lock_password.xml b/res/layout-xlarge-land/confirm_lock_password.xml
index cbfe88c0a74..d03923e6ab0 100644
--- a/res/layout-xlarge-land/confirm_lock_password.xml
+++ b/res/layout-xlarge-land/confirm_lock_password.xml
@@ -17,16 +17,16 @@
*/
-->
-
-
+
+ android:layout_height="fill_parent">
@@ -63,12 +63,31 @@
/>
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/res/layout-xlarge-land/confirm_lock_pattern.xml b/res/layout-xlarge-land/confirm_lock_pattern.xml
index 29fc93e3498..04c3e857b18 100644
--- a/res/layout-xlarge-land/confirm_lock_pattern.xml
+++ b/res/layout-xlarge-land/confirm_lock_pattern.xml
@@ -21,33 +21,42 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
-
-
-
-
-
+ android:layout_weight="1">
+
+
+
+
-
+
+
diff --git a/res/layout-xlarge/choose_lock_password.xml b/res/layout-xlarge/choose_lock_password.xml
index 051229efa72..ef27a0f76b5 100644
--- a/res/layout-xlarge/choose_lock_password.xml
+++ b/res/layout-xlarge/choose_lock_password.xml
@@ -20,7 +20,6 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
- android:background="@android:color/background_dark"
android:gravity="center_horizontal">
@@ -72,6 +71,7 @@
android:background="#00000000"
android:layout_marginBottom="30dip"
android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
+ android:visibility="gone"
/>
diff --git a/res/layout-xlarge/choose_lock_pattern.xml b/res/layout-xlarge/choose_lock_pattern.xml
index 97c647ffdec..5995c268ba1 100644
--- a/res/layout-xlarge/choose_lock_pattern.xml
+++ b/res/layout-xlarge/choose_lock_pattern.xml
@@ -14,78 +14,69 @@
limitations under the License.
-->
+ android:gravity="center_horizontal">
-
-
+
+
+
+
+
+
+
+
+
+
+ android:layout_weight="1"/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ android:layout_alignParentRight="true"
+ android:orientation="horizontal">
-
+
+
-
+
+
-
+
+
+
diff --git a/res/layout-xlarge/confirm_lock_password.xml b/res/layout-xlarge/confirm_lock_password.xml
index 7f563b161cf..5a5d6b215b1 100644
--- a/res/layout-xlarge/confirm_lock_password.xml
+++ b/res/layout-xlarge/confirm_lock_password.xml
@@ -23,7 +23,6 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
- android:background="@android:color/background_dark"
android:gravity="center_horizontal">
@@ -75,6 +74,7 @@
android:background="#00000000"
android:layout_marginBottom="30dip"
android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
+ android:visibility="gone"
/>
+ android:gravity="center_horizontal">
+
+
-
-
-
-
+ android:layout_width="542dip"
+ android:layout_height="78dip"
+ android:layout_marginTop="96dip"
+ android:textSize="22sp"/>
+
+
+
+
+
+
-
+ android:layout_weight="1"/>
diff --git a/src/com/android/settings/ChooseLockPassword.java b/src/com/android/settings/ChooseLockPassword.java
index 08e382c3d28..a37d3da3e6a 100644
--- a/src/com/android/settings/ChooseLockPassword.java
+++ b/src/com/android/settings/ChooseLockPassword.java
@@ -29,6 +29,7 @@ import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceActivity;
import android.text.Editable;
+import android.text.InputType;
import android.text.Selection;
import android.text.Spannable;
import android.text.TextUtils;
@@ -191,6 +192,10 @@ public class ChooseLockPassword extends PreferenceActivity {
mHeaderText = (TextView) view.findViewById(R.id.headerText);
mKeyboardView.requestFocus();
+ int currentType = mPasswordEntry.getInputType();
+ mPasswordEntry.setInputType(mIsAlphaMode ? currentType
+ : (currentType | InputType.TYPE_CLASS_NUMBER));
+
Intent intent = getActivity().getIntent();
final boolean confirmCredentials = intent.getBooleanExtra("confirm_credentials", true);
if (savedInstanceState == null) {
diff --git a/src/com/android/settings/ConfirmLockPassword.java b/src/com/android/settings/ConfirmLockPassword.java
index 380e848237a..d824588854f 100644
--- a/src/com/android/settings/ConfirmLockPassword.java
+++ b/src/com/android/settings/ConfirmLockPassword.java
@@ -26,6 +26,7 @@ import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceActivity;
+import android.text.InputType;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
@@ -98,6 +99,11 @@ public class ConfirmLockPassword extends PreferenceActivity {
mKeyboardHelper.setKeyboardMode(isAlpha ? PasswordEntryKeyboardHelper.KEYBOARD_MODE_ALPHA
: PasswordEntryKeyboardHelper.KEYBOARD_MODE_NUMERIC);
mKeyboardView.requestFocus();
+
+ int currentType = mPasswordEntry.getInputType();
+ mPasswordEntry.setInputType(isAlpha ? currentType
+ : (currentType | InputType.TYPE_CLASS_NUMBER));
+
return view;
}