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