• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<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">
24
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"
30        android:lines="2"
31        android:textAppearance="?android:attr/textAppearanceLarge"/>
32
33    <!-- spacer above text entry field -->
34    <View
35        android:id="@+id/spacerBottom"
36        android:layout_width="fill_parent"
37        android:layout_height="1dip"
38        android:layout_marginTop="6dip"
39        android:background="@android:drawable/divider_horizontal_dark"
40    />
41
42    <!-- Password entry field -->
43    <EditText android:id="@+id/password_entry"
44        android:layout_width="match_parent"
45        android:layout_height="wrap_content"
46        android:singleLine="true"
47        android:textStyle="bold"
48        android:inputType="textPassword"
49        android:gravity="center"
50        android:layout_gravity="center"
51        android:textSize="32sp"
52        android:layout_marginTop="15dip"
53        android:layout_marginLeft="30dip"
54        android:layout_marginRight="30dip"
55        android:textAppearance="?android:attr/textAppearanceLarge"
56        android:background="@drawable/password_field_default"
57        android:textColor="#ffffffff"
58    />
59
60    <!-- Spacer between password entry and keyboard -->
61    <View
62        android:layout_width="match_parent"
63        android:layout_height="0dip"
64        android:layout_weight="1" />
65
66    <!-- Alphanumeric keyboard -->
67    <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
68        android:layout_alignParentBottom="true"
69        android:layout_width="match_parent"
70        android:layout_height="wrap_content"
71        android:background="#00000000"
72        android:layout_marginBottom="30dip"
73        android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
74        android:visibility="gone"
75    />
76
77    <View
78        android:layout_width="match_parent"
79        android:layout_height="0dip"
80    />
81
82    <RelativeLayout
83        android:layout_height="wrap_content"
84        android:layout_width="match_parent">
85
86        <LinearLayout
87            style="@style/SecurityPreferenceButtonContainer"
88            android:layout_alignParentRight="true"
89            android:orientation="horizontal">
90
91            <Button android:id="@+id/cancel_button"
92                style="@style/SecurityPreferenceButton"
93                android:text="@string/lockpassword_cancel_label"/>
94
95            <Button android:id="@+id/next_button"
96                style="@style/SecurityPreferenceButton"
97                android:text="@string/lockpassword_continue_label"/>
98
99        </LinearLayout>
100
101    </RelativeLayout>
102
103</LinearLayout>
104