1 <?xml version="1.0" encoding="utf-8"?>
4 ** Copyright 2008, The Android Open Source Project
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
10 ** http://www.apache.org/licenses/LICENSE-2.0
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.
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="fill_parent"
21 android:layout_height="fill_parent"
22 android:orientation="vertical"
23 android:gravity="center_horizontal">
25 <!-- header text ('Enter Pin') -->
26 <TextView android:id="@+id/headerText"
27 android:layout_width="fill_parent"
28 android:layout_height="wrap_content"
29 android:gravity="center"
31 android:textAppearance="?android:attr/textAppearanceLarge"/>
33 <!-- Password entry field -->
34 <EditText android:id="@+id/password_entry"
35 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
37 android:layout_marginTop="15dip"
38 android:layout_marginStart="30dip"
39 android:layout_marginEnd="30dip"
40 android:layout_gravity="center"
41 android:inputType="textPassword"
42 android:imeOptions="actionNext"
43 android:gravity="center"
44 android:textSize="32sp"
45 style="@style/TextAppearance.PasswordEntry"
48 <!-- Spacer between password entry and keyboard -->
50 android:layout_width="match_parent"
51 android:layout_height="0dip"
52 android:layout_weight="1" />
54 <!-- Alphanumeric keyboard -->
55 <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
56 android:layout_alignParentBottom="true"
57 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
59 android:background="@color/background_color_transparent"
60 android:layout_marginBottom="30dip"
61 android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
62 android:visibility="gone"
66 android:layout_width="match_parent"
67 android:layout_height="0dip"
71 android:layout_height="wrap_content"
72 android:layout_width="match_parent">
75 style="@style/SecurityPreferenceButtonContainer"
76 android:layout_alignParentEnd="true"
77 android:orientation="horizontal">
79 <Button android:id="@+id/cancel_button"
80 style="@style/SecurityPreferenceButton"
81 android:text="@string/lockpassword_cancel_label"/>
83 <Button android:id="@+id/next_button"
84 style="@style/SecurityPreferenceButton"
85 android:text="@string/lockpassword_continue_label"/>