blob: d4c5d7474aedf6ad9cf4fbf1357c267f5ada7641 [file] [log] [blame]
Jim Millerdcb3d842012-08-23 19:18:12 -07001<?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-->
Jim Miller3efe1062012-09-28 16:59:31 -070019<!-- 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. -->
Jim Miller5ecd8112013-01-09 18:50:26 -080021<com.android.keyguard.KeyguardSimPukView
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070022 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">
Jim Millerdcb3d842012-08-23 19:18:12 -070031
Daniel Sandler23d7a6e2012-11-02 00:21:07 -040032 <ImageView
Jorim Jaggid05064b2014-11-20 21:35:33 +010033 android:id="@+id/keyguard_sim"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070034 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
36 android:src="@drawable/ic_lockscreen_sim"/>
Daniel Sandler23d7a6e2012-11-02 00:21:07 -040037
38 <include layout="@layout/keyguard_message_area"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070039 android:layout_width="match_parent"
40 android:layout_height="wrap_content"
41 />
Daniel Sandler23d7a6e2012-11-02 00:21:07 -040042 <LinearLayout
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070043 android:layout_width="match_parent"
44 android:layout_height="0dp"
45 android:orientation="vertical"
qingxi3d768742017-04-12 11:07:11 -070046 android:gravity="center"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070047 android:layout_weight="1"
48 android:layoutDirection="ltr"
49 >
qingxi3d768742017-04-12 11:07:11 -070050 <include layout="@layout/keyguard_esim_area"
qingxi12f2de42017-05-24 15:33:13 -070051 android:id="@+id/keyguard_esim_area"
52 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
54 android:layout_marginTop="@dimen/eca_overlap" />
qingxi3d768742017-04-12 11:07:11 -070055
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070056 <RelativeLayout
57 android:id="@+id/row0"
58 android:layout_width="match_parent"
59 android:layout_height="0dp"
60 android:layout_weight="1"
61 android:paddingBottom="16dp"
62 >
63 <com.android.keyguard.PasswordTextView
64 android:id="@+id/pukEntry"
65 android:layout_width="@dimen/keyguard_security_width"
66 android:layout_height="match_parent"
67 android:gravity="center"
68 android:layout_centerHorizontal="true"
69 android:layout_marginRight="72dp"
Andrew Sappersteinfec80922017-06-13 18:36:28 -070070 androidprv:scaledTextSize="@integer/scaled_password_text_size"
Lucas Dupina360e1e72017-07-17 17:25:20 -070071 android:textColor="?attr/wallpaperTextColor"
Jinsong Mudc6efdc2014-12-03 18:13:15 -080072 android:contentDescription="@string/keyguard_accessibility_sim_puk_area"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070073 />
74 <ImageButton
75 android:id="@+id/delete_button"
76 android:layout_width="wrap_content"
77 android:layout_height="match_parent"
78 android:gravity="center_vertical"
Lucas Dupin6a526082017-08-02 15:26:14 -070079 android:src="@drawable/ic_backspace_black_24dp"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070080 android:clickable="true"
81 android:paddingTop="8dip"
82 android:paddingBottom="8dip"
Lucas Dupin987f1932017-05-13 21:02:52 -070083 android:paddingRight="0dp"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070084 android:paddingLeft="24dp"
85 android:background="@drawable/ripple_drawable"
86 android:contentDescription="@string/keyboardview_keycode_delete"
87 android:layout_alignEnd="@+id/pinEntry"
88 android:layout_alignParentRight="true"
Lucas Dupin987f1932017-05-13 21:02:52 -070089 android:tint="@color/pin_delete_color"
Lucas Dupin6a526082017-08-02 15:26:14 -070090 android:tintMode="src_in"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070091 />
92 <View
93 android:id="@+id/divider"
94 android:layout_width="match_parent"
95 android:layout_height="1dp"
96 android:layout_alignParentBottom="true"
Lucas Dupin987f1932017-05-13 21:02:52 -070097 android:background="@drawable/pin_divider"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070098 />
99 </RelativeLayout>
100 <LinearLayout
101 android:layout_width="match_parent"
102 android:layout_height="0dp"
103 android:layout_weight="1"
104 android:orientation="horizontal"
105 >
106 <com.android.keyguard.NumPadKey
107 android:id="@+id/key1"
108 android:layout_width="0px"
109 android:layout_height="match_parent"
110 android:layout_weight="1"
111 androidprv:textView="@+id/pukEntry"
112 androidprv:digit="1"
113 />
114 <com.android.keyguard.NumPadKey
115 android:id="@+id/key2"
116 android:layout_width="0px"
117 android:layout_height="match_parent"
118 android:layout_weight="1"
119 androidprv:textView="@+id/pukEntry"
120 androidprv:digit="2"
121 />
122 <com.android.keyguard.NumPadKey
123 android:id="@+id/key3"
124 android:layout_width="0px"
125 android:layout_height="match_parent"
126 android:layout_weight="1"
127 androidprv:textView="@+id/pukEntry"
128 androidprv:digit="3"
129 />
130 </LinearLayout>
131 <LinearLayout
132 android:layout_width="match_parent"
133 android:layout_height="0dp"
134 android:layout_weight="1"
135 android:orientation="horizontal"
136 >
137 <com.android.keyguard.NumPadKey
138 android:id="@+id/key4"
139 android:layout_width="0px"
140 android:layout_height="match_parent"
141 android:layout_weight="1"
142 androidprv:textView="@+id/pukEntry"
143 androidprv:digit="4"
144 />
145 <com.android.keyguard.NumPadKey
146 android:id="@+id/key5"
147 android:layout_width="0px"
148 android:layout_height="match_parent"
149 android:layout_weight="1"
150 androidprv:textView="@+id/pukEntry"
151 androidprv:digit="5"
152 />
153 <com.android.keyguard.NumPadKey
154 android:id="@+id/key6"
155 android:layout_width="0px"
156 android:layout_height="match_parent"
157 android:layout_weight="1"
158 androidprv:textView="@+id/pukEntry"
159 androidprv:digit="6"
160 />
161 </LinearLayout>
162 <LinearLayout
163 android:layout_width="match_parent"
164 android:layout_height="0dp"
165 android:orientation="horizontal"
166 android:layout_weight="1"
167 >
168 <com.android.keyguard.NumPadKey
169 android:id="@+id/key7"
170 android:layout_width="0px"
171 android:layout_height="match_parent"
172 android:layout_weight="1"
173 androidprv:textView="@+id/pukEntry"
174 androidprv:digit="7"
175 />
176 <com.android.keyguard.NumPadKey
177 android:id="@+id/key8"
178 android:layout_width="0px"
179 android:layout_height="match_parent"
180 android:layout_weight="1"
181 androidprv:textView="@+id/pukEntry"
182 androidprv:digit="8"
183 />
184 <com.android.keyguard.NumPadKey
185 android:id="@+id/key9"
186 android:layout_width="0px"
187 android:layout_height="match_parent"
188 android:layout_weight="1"
189 androidprv:textView="@+id/pukEntry"
190 androidprv:digit="9"
191 />
192 </LinearLayout>
193 <LinearLayout
194 android:layout_width="match_parent"
195 android:layout_height="0dp"
196 android:layout_weight="1"
197 android:orientation="horizontal"
198 >
199 <Space
200 android:layout_width="0px"
201 android:layout_height="match_parent"
202 android:layout_weight="1"
203 />
204 <com.android.keyguard.NumPadKey
205 android:id="@+id/key0"
206 android:layout_width="0px"
207 android:layout_height="match_parent"
208 android:layout_weight="1"
209 androidprv:textView="@+id/pukEntry"
210 androidprv:digit="0"
211 />
212 <ImageButton
213 android:id="@+id/key_enter"
214 android:layout_width="0px"
215 android:layout_height="match_parent"
216 android:layout_weight="1"
217 android:paddingBottom="11sp"
Lucas Dupin6a526082017-08-02 15:26:14 -0700218 android:src="@drawable/ic_done_black_24dp"
Lucas Dupin987f1932017-05-13 21:02:52 -0700219 style="@style/Keyguard.ImageButton.NumPadEnter"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700220 android:background="@drawable/ripple_drawable"
221 android:contentDescription="@string/keyboardview_keycode_enter"
222 />
223 </LinearLayout>
Jim Millerdcb3d842012-08-23 19:18:12 -0700224 </LinearLayout>
225
Jim Miller9e0a2502012-11-07 21:23:32 -0800226 <include layout="@layout/keyguard_eca"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700227 android:id="@+id/keyguard_selector_fade_container"
228 android:layout_width="match_parent"
229 android:layout_height="wrap_content"
230 android:orientation="vertical"
231 android:layout_gravity="bottom|center_horizontal"
232 android:gravity="center_horizontal"/>
Jim Miller5ecd8112013-01-09 18:50:26 -0800233</com.android.keyguard.KeyguardSimPukView>