• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2012, 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<!-- This is the SIM PIN view that allows the user to enter a SIM PIN to unlock the device. -->
20<com.android.keyguard.KeyguardSimPinView
21        xmlns:android="http://schemas.android.com/apk/res/android"
22        xmlns:androidprv="http://schemas.android.com/apk/res-auto"
23        android:id="@+id/keyguard_sim_pin_view"
24        android:orientation="vertical"
25        android:layout_width="match_parent"
26        android:layout_height="match_parent"
27        androidprv:layout_maxWidth="@dimen/keyguard_security_width"
28        androidprv:layout_maxHeight="@dimen/keyguard_security_max_height"
29        android:gravity="center_horizontal">
30
31    <ImageView
32            android:id="@+id/keyguard_sim"
33            android:layout_width="match_parent"
34            android:layout_height="wrap_content"
35            android:src="@drawable/ic_lockscreen_sim"/>
36
37    <include layout="@layout/keyguard_message_area"
38             android:layout_width="match_parent"
39             android:layout_height="wrap_content"
40            />
41    <LinearLayout
42            android:layout_width="match_parent"
43            android:layout_height="0dp"
44            android:orientation="vertical"
45            android:layout_weight="1"
46            android:layoutDirection="ltr"
47            >
48        <RelativeLayout
49                android:id="@+id/row0"
50                android:layout_width="match_parent"
51                android:layout_height="0dp"
52                android:layout_weight="1"
53                android:paddingBottom="16dp"
54                >
55            <com.android.keyguard.PasswordTextView
56                    android:id="@+id/simPinEntry"
57                    android:layout_width="@dimen/keyguard_security_width"
58                    android:layout_height="match_parent"
59                    android:gravity="center"
60                    android:layout_centerHorizontal="true"
61                    android:layout_marginRight="72dp"
62                    androidprv:scaledTextSize="28"
63                    android:contentDescription="@string/keyguard_accessibility_sim_pin_area"
64                    />
65            <ImageButton
66                    android:id="@+id/delete_button"
67                    android:layout_width="wrap_content"
68                    android:layout_height="match_parent"
69                    android:gravity="center_vertical"
70                    android:src="@drawable/ic_backspace_24dp"
71                    android:clickable="true"
72                    android:paddingTop="8dip"
73                    android:paddingBottom="8dip"
74                    android:paddingRight="8dp"
75                    android:paddingLeft="24dp"
76                    android:background="@drawable/ripple_drawable"
77                    android:contentDescription="@string/keyboardview_keycode_delete"
78                    android:layout_alignEnd="@+id/pinEntry"
79                    android:layout_alignParentRight="true"
80                    />
81            <View
82                    android:id="@+id/divider"
83                    android:layout_width="match_parent"
84                    android:layout_height="1dp"
85                    android:layout_alignParentBottom="true"
86                    android:background="#28FFFFFF"
87                    />
88        </RelativeLayout>
89        <LinearLayout
90                android:layout_width="match_parent"
91                android:layout_height="0dp"
92                android:layout_weight="1"
93                android:orientation="horizontal"
94                >
95            <com.android.keyguard.NumPadKey
96                    android:id="@+id/key1"
97                    android:layout_width="0px"
98                    android:layout_height="match_parent"
99                    android:layout_weight="1"
100                    androidprv:textView="@+id/simPinEntry"
101                    androidprv:digit="1"
102                    />
103            <com.android.keyguard.NumPadKey
104                    android:id="@+id/key2"
105                    android:layout_width="0px"
106                    android:layout_height="match_parent"
107                    android:layout_weight="1"
108                    androidprv:textView="@+id/simPinEntry"
109                    androidprv:digit="2"
110                    />
111            <com.android.keyguard.NumPadKey
112                    android:id="@+id/key3"
113                    android:layout_width="0px"
114                    android:layout_height="match_parent"
115                    android:layout_weight="1"
116                    androidprv:textView="@+id/simPinEntry"
117                    androidprv:digit="3"
118                    />
119        </LinearLayout>
120        <LinearLayout
121                android:layout_width="match_parent"
122                android:layout_height="0dp"
123                android:layout_weight="1"
124                android:orientation="horizontal"
125                >
126            <com.android.keyguard.NumPadKey
127                    android:id="@+id/key4"
128                    android:layout_width="0px"
129                    android:layout_height="match_parent"
130                    android:layout_weight="1"
131                    androidprv:textView="@+id/simPinEntry"
132                    androidprv:digit="4"
133                    />
134            <com.android.keyguard.NumPadKey
135                    android:id="@+id/key5"
136                    android:layout_width="0px"
137                    android:layout_height="match_parent"
138                    android:layout_weight="1"
139                    androidprv:textView="@+id/simPinEntry"
140                    androidprv:digit="5"
141                    />
142            <com.android.keyguard.NumPadKey
143                    android:id="@+id/key6"
144                    android:layout_width="0px"
145                    android:layout_height="match_parent"
146                    android:layout_weight="1"
147                    androidprv:textView="@+id/simPinEntry"
148                    androidprv:digit="6"
149                    />
150        </LinearLayout>
151        <LinearLayout
152                android:layout_width="match_parent"
153                android:layout_height="0dp"
154                android:orientation="horizontal"
155                android:layout_weight="1"
156                >
157            <com.android.keyguard.NumPadKey
158                    android:id="@+id/key7"
159                    android:layout_width="0px"
160                    android:layout_height="match_parent"
161                    android:layout_weight="1"
162                    androidprv:textView="@+id/simPinEntry"
163                    androidprv:digit="7"
164                    />
165            <com.android.keyguard.NumPadKey
166                    android:id="@+id/key8"
167                    android:layout_width="0px"
168                    android:layout_height="match_parent"
169                    android:layout_weight="1"
170                    androidprv:textView="@+id/simPinEntry"
171                    androidprv:digit="8"
172                    />
173            <com.android.keyguard.NumPadKey
174                    android:id="@+id/key9"
175                    android:layout_width="0px"
176                    android:layout_height="match_parent"
177                    android:layout_weight="1"
178                    androidprv:textView="@+id/simPinEntry"
179                    androidprv:digit="9"
180                    />
181        </LinearLayout>
182        <LinearLayout
183                android:layout_width="match_parent"
184                android:layout_height="0dp"
185                android:layout_weight="1"
186                android:orientation="horizontal"
187                >
188            <Space
189                    android:layout_width="0px"
190                    android:layout_height="match_parent"
191                    android:layout_weight="1"
192                    />
193            <com.android.keyguard.NumPadKey
194                    android:id="@+id/key0"
195                    android:layout_width="0px"
196                    android:layout_height="match_parent"
197                    android:layout_weight="1"
198                    androidprv:textView="@+id/simPinEntry"
199                    androidprv:digit="0"
200                    />
201            <ImageButton
202                    android:id="@+id/key_enter"
203                    android:layout_width="0px"
204                    android:layout_height="match_parent"
205                    android:layout_weight="1"
206                    android:paddingBottom="11sp"
207                    android:src="@drawable/ic_done_wht"
208                    android:background="@drawable/ripple_drawable"
209                    android:contentDescription="@string/keyboardview_keycode_enter"
210                    />
211        </LinearLayout>
212    </LinearLayout>
213
214    <include layout="@layout/keyguard_eca"
215             android:id="@+id/keyguard_selector_fade_container"
216             android:layout_width="match_parent"
217             android:layout_height="wrap_content"
218             android:orientation="vertical"
219             android:layout_gravity="bottom|center_horizontal"
220             android:gravity="center_horizontal"/>
221
222</com.android.keyguard.KeyguardSimPinView>
223