blob: cf87f9026e221eed55a9b0e0844024bfe9f8cc35 [file] [log] [blame]
Jim Millerdcb3d842012-08-23 19:18:12 -07001<?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. -->
Jim Miller5ecd8112013-01-09 18:50:26 -080020<com.android.keyguard.KeyguardSimPinView
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070021 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"
Jinsong Mudc6efdc2014-12-03 18:13:15 -080029 android:gravity="center_horizontal">
Jim Millerdcb3d842012-08-23 19:18:12 -070030
Daniel Sandler53149e62012-11-01 22:00:07 -040031 <ImageView
Jorim Jaggid05064b2014-11-20 21:35:33 +010032 android:id="@+id/keyguard_sim"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070033 android:layout_width="match_parent"
34 android:layout_height="wrap_content"
35 android:src="@drawable/ic_lockscreen_sim"/>
Daniel Sandler53149e62012-11-01 22:00:07 -040036
37 <include layout="@layout/keyguard_message_area"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070038 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 />
Daniel Sandler53149e62012-11-01 22:00:07 -040041 <LinearLayout
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070042 android:layout_width="match_parent"
43 android:layout_height="0dp"
44 android:orientation="vertical"
qingxi3d768742017-04-12 11:07:11 -070045 android:gravity="center"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070046 android:layout_weight="1"
47 android:layoutDirection="ltr"
48 >
qingxi3d768742017-04-12 11:07:11 -070049 <include layout="@layout/keyguard_esim_area"
qingxi12f2de42017-05-24 15:33:13 -070050 android:id="@+id/keyguard_esim_area"
qingxi3d768742017-04-12 11:07:11 -070051 android:layout_width="wrap_content"
52 android:layout_height="wrap_content"
53 android:layout_marginTop="@dimen/eca_overlap" />
54
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070055 <RelativeLayout
56 android:id="@+id/row0"
57 android:layout_width="match_parent"
58 android:layout_height="0dp"
59 android:layout_weight="1"
60 android:paddingBottom="16dp"
61 >
62 <com.android.keyguard.PasswordTextView
63 android:id="@+id/simPinEntry"
64 android:layout_width="@dimen/keyguard_security_width"
65 android:layout_height="match_parent"
66 android:gravity="center"
67 android:layout_centerHorizontal="true"
68 android:layout_marginRight="72dp"
Andrew Sappersteinfec80922017-06-13 18:36:28 -070069 androidprv:scaledTextSize="@integer/scaled_password_text_size"
Lucas Dupina360e1e72017-07-17 17:25:20 -070070 android:textColor="?attr/wallpaperTextColor"
Jinsong Mudc6efdc2014-12-03 18:13:15 -080071 android:contentDescription="@string/keyguard_accessibility_sim_pin_area"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070072 />
73 <ImageButton
74 android:id="@+id/delete_button"
75 android:layout_width="wrap_content"
76 android:layout_height="match_parent"
77 android:gravity="center_vertical"
78 android:src="@drawable/ic_backspace_24dp"
79 android:clickable="true"
80 android:paddingTop="8dip"
81 android:paddingBottom="8dip"
Lucas Dupin987f1932017-05-13 21:02:52 -070082 android:paddingRight="0dp"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070083 android:paddingLeft="24dp"
84 android:background="@drawable/ripple_drawable"
85 android:contentDescription="@string/keyboardview_keycode_delete"
86 android:layout_alignEnd="@+id/pinEntry"
87 android:layout_alignParentRight="true"
Lucas Dupin987f1932017-05-13 21:02:52 -070088 android:tint="@color/pin_delete_color"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070089 />
90 <View
91 android:id="@+id/divider"
92 android:layout_width="match_parent"
93 android:layout_height="1dp"
94 android:layout_alignParentBottom="true"
Lucas Dupin987f1932017-05-13 21:02:52 -070095 android:background="@drawable/pin_divider"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070096 />
97 </RelativeLayout>
98 <LinearLayout
99 android:layout_width="match_parent"
100 android:layout_height="0dp"
101 android:layout_weight="1"
102 android:orientation="horizontal"
103 >
104 <com.android.keyguard.NumPadKey
105 android:id="@+id/key1"
106 android:layout_width="0px"
107 android:layout_height="match_parent"
108 android:layout_weight="1"
109 androidprv:textView="@+id/simPinEntry"
110 androidprv:digit="1"
111 />
112 <com.android.keyguard.NumPadKey
113 android:id="@+id/key2"
114 android:layout_width="0px"
115 android:layout_height="match_parent"
116 android:layout_weight="1"
117 androidprv:textView="@+id/simPinEntry"
118 androidprv:digit="2"
119 />
120 <com.android.keyguard.NumPadKey
121 android:id="@+id/key3"
122 android:layout_width="0px"
123 android:layout_height="match_parent"
124 android:layout_weight="1"
125 androidprv:textView="@+id/simPinEntry"
126 androidprv:digit="3"
127 />
128 </LinearLayout>
129 <LinearLayout
130 android:layout_width="match_parent"
131 android:layout_height="0dp"
132 android:layout_weight="1"
133 android:orientation="horizontal"
134 >
135 <com.android.keyguard.NumPadKey
136 android:id="@+id/key4"
137 android:layout_width="0px"
138 android:layout_height="match_parent"
139 android:layout_weight="1"
140 androidprv:textView="@+id/simPinEntry"
141 androidprv:digit="4"
142 />
143 <com.android.keyguard.NumPadKey
144 android:id="@+id/key5"
145 android:layout_width="0px"
146 android:layout_height="match_parent"
147 android:layout_weight="1"
148 androidprv:textView="@+id/simPinEntry"
149 androidprv:digit="5"
150 />
151 <com.android.keyguard.NumPadKey
152 android:id="@+id/key6"
153 android:layout_width="0px"
154 android:layout_height="match_parent"
155 android:layout_weight="1"
156 androidprv:textView="@+id/simPinEntry"
157 androidprv:digit="6"
158 />
159 </LinearLayout>
160 <LinearLayout
161 android:layout_width="match_parent"
162 android:layout_height="0dp"
163 android:orientation="horizontal"
164 android:layout_weight="1"
165 >
166 <com.android.keyguard.NumPadKey
167 android:id="@+id/key7"
168 android:layout_width="0px"
169 android:layout_height="match_parent"
170 android:layout_weight="1"
171 androidprv:textView="@+id/simPinEntry"
172 androidprv:digit="7"
173 />
174 <com.android.keyguard.NumPadKey
175 android:id="@+id/key8"
176 android:layout_width="0px"
177 android:layout_height="match_parent"
178 android:layout_weight="1"
179 androidprv:textView="@+id/simPinEntry"
180 androidprv:digit="8"
181 />
182 <com.android.keyguard.NumPadKey
183 android:id="@+id/key9"
184 android:layout_width="0px"
185 android:layout_height="match_parent"
186 android:layout_weight="1"
187 androidprv:textView="@+id/simPinEntry"
188 androidprv:digit="9"
189 />
190 </LinearLayout>
191 <LinearLayout
192 android:layout_width="match_parent"
193 android:layout_height="0dp"
194 android:layout_weight="1"
195 android:orientation="horizontal"
196 >
197 <Space
198 android:layout_width="0px"
199 android:layout_height="match_parent"
200 android:layout_weight="1"
201 />
202 <com.android.keyguard.NumPadKey
203 android:id="@+id/key0"
204 android:layout_width="0px"
205 android:layout_height="match_parent"
206 android:layout_weight="1"
207 androidprv:textView="@+id/simPinEntry"
208 androidprv:digit="0"
209 />
210 <ImageButton
211 android:id="@+id/key_enter"
212 android:layout_width="0px"
213 android:layout_height="match_parent"
214 android:layout_weight="1"
215 android:paddingBottom="11sp"
216 android:src="@drawable/ic_done_wht"
Lucas Dupin987f1932017-05-13 21:02:52 -0700217 style="@style/Keyguard.ImageButton.NumPadEnter"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700218 android:background="@drawable/ripple_drawable"
219 android:contentDescription="@string/keyboardview_keycode_enter"
220 />
221 </LinearLayout>
Jim Millerdcb3d842012-08-23 19:18:12 -0700222 </LinearLayout>
223
Jim Miller9e0a2502012-11-07 21:23:32 -0800224 <include layout="@layout/keyguard_eca"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700225 android:id="@+id/keyguard_selector_fade_container"
226 android:layout_width="match_parent"
227 android:layout_height="wrap_content"
228 android:orientation="vertical"
229 android:layout_gravity="bottom|center_horizontal"
230 android:gravity="center_horizontal"/>
Jim Miller3af630c2012-09-26 14:29:18 -0700231
Jim Miller5ecd8112013-01-09 18:50:26 -0800232</com.android.keyguard.KeyguardSimPinView>