blob: 9f3ae3a8be4583a40071cf4f4275958a3a8f69b0 [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"
Lucas Dupin0e992fb2017-11-06 15:13:13 -080036 android:tint="@color/background_protected"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070037 android:src="@drawable/ic_lockscreen_sim"/>
Daniel Sandler23d7a6e2012-11-02 00:21:07 -040038
39 <include layout="@layout/keyguard_message_area"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070040 android:layout_width="match_parent"
41 android:layout_height="wrap_content"
42 />
Daniel Sandler23d7a6e2012-11-02 00:21:07 -040043 <LinearLayout
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070044 android:layout_width="match_parent"
45 android:layout_height="0dp"
46 android:orientation="vertical"
qingxi3d768742017-04-12 11:07:11 -070047 android:gravity="center"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070048 android:layout_weight="1"
49 android:layoutDirection="ltr"
50 >
qingxi3d768742017-04-12 11:07:11 -070051 <include layout="@layout/keyguard_esim_area"
qingxi12f2de42017-05-24 15:33:13 -070052 android:id="@+id/keyguard_esim_area"
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
55 android:layout_marginTop="@dimen/eca_overlap" />
qingxi3d768742017-04-12 11:07:11 -070056
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070057 <RelativeLayout
58 android:id="@+id/row0"
59 android:layout_width="match_parent"
60 android:layout_height="0dp"
61 android:layout_weight="1"
62 android:paddingBottom="16dp"
63 >
64 <com.android.keyguard.PasswordTextView
65 android:id="@+id/pukEntry"
66 android:layout_width="@dimen/keyguard_security_width"
67 android:layout_height="match_parent"
68 android:gravity="center"
69 android:layout_centerHorizontal="true"
70 android:layout_marginRight="72dp"
Andrew Sappersteinfec80922017-06-13 18:36:28 -070071 androidprv:scaledTextSize="@integer/scaled_password_text_size"
Lucas Dupina360e1e72017-07-17 17:25:20 -070072 android:textColor="?attr/wallpaperTextColor"
Jinsong Mudc6efdc2014-12-03 18:13:15 -080073 android:contentDescription="@string/keyguard_accessibility_sim_puk_area"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070074 />
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070075 <View
76 android:id="@+id/divider"
77 android:layout_width="match_parent"
78 android:layout_height="1dp"
79 android:layout_alignParentBottom="true"
Lucas Dupin987f1932017-05-13 21:02:52 -070080 android:background="@drawable/pin_divider"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070081 />
82 </RelativeLayout>
83 <LinearLayout
84 android:layout_width="match_parent"
85 android:layout_height="0dp"
86 android:layout_weight="1"
87 android:orientation="horizontal"
88 >
89 <com.android.keyguard.NumPadKey
90 android:id="@+id/key1"
91 android:layout_width="0px"
92 android:layout_height="match_parent"
93 android:layout_weight="1"
94 androidprv:textView="@+id/pukEntry"
95 androidprv:digit="1"
96 />
97 <com.android.keyguard.NumPadKey
98 android:id="@+id/key2"
99 android:layout_width="0px"
100 android:layout_height="match_parent"
101 android:layout_weight="1"
102 androidprv:textView="@+id/pukEntry"
103 androidprv:digit="2"
104 />
105 <com.android.keyguard.NumPadKey
106 android:id="@+id/key3"
107 android:layout_width="0px"
108 android:layout_height="match_parent"
109 android:layout_weight="1"
110 androidprv:textView="@+id/pukEntry"
111 androidprv:digit="3"
112 />
113 </LinearLayout>
114 <LinearLayout
115 android:layout_width="match_parent"
116 android:layout_height="0dp"
117 android:layout_weight="1"
118 android:orientation="horizontal"
119 >
120 <com.android.keyguard.NumPadKey
121 android:id="@+id/key4"
122 android:layout_width="0px"
123 android:layout_height="match_parent"
124 android:layout_weight="1"
125 androidprv:textView="@+id/pukEntry"
126 androidprv:digit="4"
127 />
128 <com.android.keyguard.NumPadKey
129 android:id="@+id/key5"
130 android:layout_width="0px"
131 android:layout_height="match_parent"
132 android:layout_weight="1"
133 androidprv:textView="@+id/pukEntry"
134 androidprv:digit="5"
135 />
136 <com.android.keyguard.NumPadKey
137 android:id="@+id/key6"
138 android:layout_width="0px"
139 android:layout_height="match_parent"
140 android:layout_weight="1"
141 androidprv:textView="@+id/pukEntry"
142 androidprv:digit="6"
143 />
144 </LinearLayout>
145 <LinearLayout
146 android:layout_width="match_parent"
147 android:layout_height="0dp"
148 android:orientation="horizontal"
149 android:layout_weight="1"
150 >
151 <com.android.keyguard.NumPadKey
152 android:id="@+id/key7"
153 android:layout_width="0px"
154 android:layout_height="match_parent"
155 android:layout_weight="1"
156 androidprv:textView="@+id/pukEntry"
157 androidprv:digit="7"
158 />
159 <com.android.keyguard.NumPadKey
160 android:id="@+id/key8"
161 android:layout_width="0px"
162 android:layout_height="match_parent"
163 android:layout_weight="1"
164 androidprv:textView="@+id/pukEntry"
165 androidprv:digit="8"
166 />
167 <com.android.keyguard.NumPadKey
168 android:id="@+id/key9"
169 android:layout_width="0px"
170 android:layout_height="match_parent"
171 android:layout_weight="1"
172 androidprv:textView="@+id/pukEntry"
173 androidprv:digit="9"
174 />
175 </LinearLayout>
176 <LinearLayout
177 android:layout_width="match_parent"
178 android:layout_height="0dp"
179 android:layout_weight="1"
180 android:orientation="horizontal"
181 >
Lucas Dupine3c9ccc2018-10-23 14:44:04 -0700182 <com.android.keyguard.AlphaOptimizedImageButton
183 android:id="@+id/delete_button"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700184 android:layout_width="0px"
185 android:layout_height="match_parent"
186 android:layout_weight="1"
Lucas Dupine3c9ccc2018-10-23 14:44:04 -0700187 android:background="@drawable/ripple_drawable_pin"
188 android:contentDescription="@string/keyboardview_keycode_delete"
189 style="@style/Keyguard.ImageButton.NumPadDelete"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700190 />
191 <com.android.keyguard.NumPadKey
192 android:id="@+id/key0"
193 android:layout_width="0px"
194 android:layout_height="match_parent"
195 android:layout_weight="1"
196 androidprv:textView="@+id/pukEntry"
197 androidprv:digit="0"
198 />
Lucas Dupine3c9ccc2018-10-23 14:44:04 -0700199 <com.android.keyguard.AlphaOptimizedImageButton
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700200 android:id="@+id/key_enter"
201 android:layout_width="0px"
202 android:layout_height="match_parent"
203 android:layout_weight="1"
Lucas Dupin987f1932017-05-13 21:02:52 -0700204 style="@style/Keyguard.ImageButton.NumPadEnter"
Lucas Dupine3c9ccc2018-10-23 14:44:04 -0700205 android:background="@drawable/ripple_drawable_pin"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700206 android:contentDescription="@string/keyboardview_keycode_enter"
207 />
208 </LinearLayout>
Jim Millerdcb3d842012-08-23 19:18:12 -0700209 </LinearLayout>
210
Jim Miller9e0a2502012-11-07 21:23:32 -0800211 <include layout="@layout/keyguard_eca"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700212 android:id="@+id/keyguard_selector_fade_container"
213 android:layout_width="match_parent"
214 android:layout_height="wrap_content"
215 android:orientation="vertical"
216 android:layout_gravity="bottom|center_horizontal"
217 android:gravity="center_horizontal"/>
Jim Miller5ecd8112013-01-09 18:50:26 -0800218</com.android.keyguard.KeyguardSimPukView>