OSDN Git Service

Fix 3148496: Update LockPatternTutorial to be one screen.
[android-x86/packages-apps-Settings.git] / res / layout-xlarge-land / confirm_lock_password.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 **
4 ** Copyright 2008, The Android Open Source Project
5 **
6 ** Licensed under the Apache License, Version 2.0 (the "License")
7 ** you may not use this file except in compliance with the License.
8 ** You may obtain a copy of the License at
9 **
10 **     http://www.apache.org/licenses/LICENSE-2.0
11 **
12 ** Unless required by applicable law or agreed to in writing, software
13 ** distributed under the License is distributed on an "AS IS" BASIS,
14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ** See the License for the specific language governing permissions and
16 ** limitations under the License.
17 */
18 -->
19
20 <!-- This is the same layout as choose_lock_password. TODO: find out why merge tag fails -->
21 <RelativeLayout
22     xmlns:android="http://schemas.android.com/apk/res/android"
23     android:layout_width="fill_parent"
24     android:layout_height="fill_parent">
25
26     <LinearLayout
27         android:layout_width="match_parent"
28         android:layout_height="wrap_content"
29         android:layout_marginTop="72dip"
30         android:orientation="horizontal">
31
32         <!-- "Enter PIN(Password) to unlock" -->
33         <TextView android:id="@+id/headerText"
34             android:layout_width="0dip"
35             android:layout_height="wrap_content"
36             android:layout_weight="1"
37             android:orientation="horizontal"
38             android:layout_marginRight="6dip"
39             android:layout_marginLeft="6dip"
40             android:layout_marginTop="10dip"
41             android:layout_marginBottom="10dip"
42             android:gravity="left"
43             android:ellipsize="marquee"
44             android:textAppearance="?android:attr/textAppearanceLarge"
45         />
46
47         <!-- Password entry field -->
48         <EditText android:id="@+id/password_entry"
49             android:layout_width="0dip"
50             android:layout_height="wrap_content"
51             android:layout_weight="1"
52             android:singleLine="true"
53             android:textStyle="bold"
54             android:inputType="textPassword"
55             android:gravity="center"
56             android:layout_gravity="center"
57             android:textSize="24sp"
58             android:layout_marginTop="5dip"
59             android:layout_marginBottom="5dip"
60             android:textAppearance="?android:attr/textAppearanceLarge"
61             android:background="@drawable/password_field_default"
62             android:textColor="#ffffffff"
63         />
64     </LinearLayout>
65
66     <!-- confirm / restart buttons -->
67     <LinearLayout
68         android:layout_width="wrap_content"
69         android:layout_height="wrap_content"
70         android:layout_alignParentRight="true"
71         android:layout_alignParentBottom="true"
72         android:orientation="horizontal">
73
74         <!-- left / top button: skip, or re-try -->
75         <Button android:id="@+id/cancel_button"
76             android:layout_width="140dip"
77             android:layout_height="wrap_content"
78             android:ellipsize="marquee"
79             android:singleLine="true"
80             android:text="@string/lockpassword_cancel_label"/>
81
82         <!-- right / bottom button: confirm or ok -->
83         <Button android:id="@+id/next_button"
84             android:layout_width="140dip"
85             android:layout_height="wrap_content"
86             android:ellipsize="marquee"
87             android:singleLine="true"
88             android:text="@string/lockpassword_continue_label"/>
89
90     </LinearLayout>
91     <!-- Alphanumeric keyboard -->
92     <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
93         android:layout_alignParentBottom="true"
94         android:layout_width="match_parent"
95         android:layout_height="wrap_content"
96         android:background="#00000000"
97         android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
98         android:visibility="gone"
99     />
100
101 </RelativeLayout>