diff options
author | Jim Miller <jaggies@google.com> | 2009-12-22 19:04:57 -0800 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2010-01-11 15:51:59 -0800 |
commit | 00d2476d8fc122b4eef59d6be6f7aa41e9c56fde (patch) | |
tree | b0eb0da4a8fcf173d8fc7d5632f0776722dbb0c7 /res/layout-land | |
parent | 8edfd3a76be936b255484dc20bbeba0050e66e75 (diff) | |
download | packages_apps_Settings-00d2476d8fc122b4eef59d6be6f7aa41e9c56fde.zip packages_apps_Settings-00d2476d8fc122b4eef59d6be6f7aa41e9c56fde.tar.gz packages_apps_Settings-00d2476d8fc122b4eef59d6be6f7aa41e9c56fde.tar.bz2 |
Fix 2332563: Add password-lock support to lockscreen
Diffstat (limited to 'res/layout-land')
-rw-r--r-- | res/layout-land/choose_lock_pin.xml | 84 | ||||
-rw-r--r-- | res/layout-land/confirm_lock_pin.xml | 83 |
2 files changed, 167 insertions, 0 deletions
diff --git a/res/layout-land/choose_lock_pin.xml b/res/layout-land/choose_lock_pin.xml new file mode 100644 index 0000000..cdc75d3 --- /dev/null +++ b/res/layout-land/choose_lock_pin.xml @@ -0,0 +1,84 @@ +<?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. +*/ +--> + +<!-- TODO: think about moving to frameworks/base/res --> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="horizontal" + android:background="@android:color/background_dark"> + + <LinearLayout android:id="@+id/topDisplayGroup" + android:layout_width="0dip" + android:layout_weight="1" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <!-- password entry --> + <LinearLayout + android:layout_width="fill_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> + + <!-- header text ('Enter Pin') --> + <TextView android:id="@+id/headerText" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:lines="2" + android:textAppearance="?android:attr/textAppearanceLarge"/> + + </LinearLayout> + + <include + android:id="@+id/keyPad" + layout="@layout/twelve_key_entry" + android:layout_width="0dip" + android:layout_weight="1" + android:layout_height="wrap_content" + android:layout_below="@id/topDisplayGroup" + android:layout_marginTop="10dip" + /> + +</LinearLayout> diff --git a/res/layout-land/confirm_lock_pin.xml b/res/layout-land/confirm_lock_pin.xml new file mode 100644 index 0000000..beff4a1 --- /dev/null +++ b/res/layout-land/confirm_lock_pin.xml @@ -0,0 +1,83 @@ +<?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. +*/ +--> + +<!-- TODO: think about moving to frameworks/base/res --> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:background="@android:color/background_dark" + android:gravity="center_horizontal"> + + <LinearLayout android:id="@+id/topDisplayGroup" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <!-- header text ('Enter Pin') --> + <TextView android:id="@+id/headerText" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:lines="2" + android:textAppearance="?android:attr/textAppearanceLarge"/> + + <!-- password entry --> + <LinearLayout + android:layout_width="fill_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="@layout/twelve_key_entry" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/topDisplayGroup" + android:layout_marginTop="10dip" + /> + +</LinearLayout> |