OSDN Git Service

Fix 3298889: Show continue button on PIN and password screens
[android-x86/packages-apps-Settings.git] / res / layout-xlarge-land / choose_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 <RelativeLayout
21     xmlns:android="http://schemas.android.com/apk/res/android"
22     android:layout_width="fill_parent"
23     android:layout_height="fill_parent">
24
25     <LinearLayout
26         android:layout_width="match_parent"
27         android:layout_height="wrap_content"
28         android:layout_marginTop="20dip"
29         android:orientation="horizontal">
30
31         <!-- "Enter PIN(Password) to unlock" -->
32         <TextView android:id="@+id/headerText"
33             android:layout_width="0dip"
34             android:layout_height="wrap_content"
35             android:layout_weight="1"
36             android:orientation="horizontal"
37             android:layout_marginRight="6dip"
38             android:layout_marginLeft="6dip"
39             android:layout_marginTop="10dip"
40             android:layout_marginBottom="10dip"
41             android:gravity="left"
42             android:ellipsize="marquee"
43             android:textAppearance="?android:attr/textAppearanceLarge"
44         />
45
46         <!-- Password entry field -->
47         <EditText android:id="@+id/password_entry"
48             android:layout_width="0dip"
49             android:layout_height="wrap_content"
50             android:layout_weight="1"
51             android:singleLine="true"
52             android:textStyle="bold"
53             android:inputType="textPassword"
54             android:gravity="center"
55             android:layout_gravity="center"
56             android:textSize="24sp"
57             android:layout_marginTop="5dip"
58             android:layout_marginBottom="5dip"
59             android:textAppearance="?android:attr/textAppearanceLarge"
60             android:background="@drawable/password_field_default"
61             android:textColor="#ffffffff"
62         />
63     </LinearLayout>
64
65     <!-- confirm / restart buttons -->
66     <LinearLayout
67         android:layout_width="wrap_content"
68         android:layout_height="wrap_content"
69         android:layout_alignParentRight="true"
70         android:layout_alignParentBottom="true"
71         android:orientation="horizontal">
72
73         <!-- left / top button: skip, or re-try -->
74         <Button android:id="@+id/cancel_button"
75             android:layout_width="140dip"
76             android:layout_height="wrap_content"
77             android:ellipsize="marquee"
78             android:singleLine="true"
79             android:text="@string/lockpassword_cancel_label"/>
80
81         <!-- right / bottom button: confirm or ok -->
82         <Button android:id="@+id/next_button"
83             android:layout_width="140dip"
84             android:layout_height="wrap_content"
85             android:ellipsize="marquee"
86             android:singleLine="true"
87             android:text="@string/lockpassword_continue_label"/>
88
89     </LinearLayout>
90     <!-- Alphanumeric keyboard -->
91     <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
92         android:layout_alignParentBottom="true"
93         android:layout_width="match_parent"
94         android:layout_height="wrap_content"
95         android:background="#00000000"
96         android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
97         android:visibility="gone"
98     />
99
100 </RelativeLayout>