blob: 97c896591eb20d259704156426961f15a0897cfa [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"
Lucas Dupin6a526082017-08-02 15:26:14 -070078 android:src="@drawable/ic_backspace_black_24dp"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070079 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"
Lucas Dupin6a526082017-08-02 15:26:14 -070089 android:tintMode="src_in"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070090 />
91 <View
92 android:id="@+id/divider"
93 android:layout_width="match_parent"
94 android:layout_height="1dp"
95 android:layout_alignParentBottom="true"
Lucas Dupin987f1932017-05-13 21:02:52 -070096 android:background="@drawable/pin_divider"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070097 />
98 </RelativeLayout>
99 <LinearLayout
100 android:layout_width="match_parent"
101 android:layout_height="0dp"
102 android:layout_weight="1"
103 android:orientation="horizontal"
104 >
105 <com.android.keyguard.NumPadKey
106 android:id="@+id/key1"
107 android:layout_width="0px"
108 android:layout_height="match_parent"
109 android:layout_weight="1"
110 androidprv:textView="@+id/simPinEntry"
111 androidprv:digit="1"
112 />
113 <com.android.keyguard.NumPadKey
114 android:id="@+id/key2"
115 android:layout_width="0px"
116 android:layout_height="match_parent"
117 android:layout_weight="1"
118 androidprv:textView="@+id/simPinEntry"
119 androidprv:digit="2"
120 />
121 <com.android.keyguard.NumPadKey
122 android:id="@+id/key3"
123 android:layout_width="0px"
124 android:layout_height="match_parent"
125 android:layout_weight="1"
126 androidprv:textView="@+id/simPinEntry"
127 androidprv:digit="3"
128 />
129 </LinearLayout>
130 <LinearLayout
131 android:layout_width="match_parent"
132 android:layout_height="0dp"
133 android:layout_weight="1"
134 android:orientation="horizontal"
135 >
136 <com.android.keyguard.NumPadKey
137 android:id="@+id/key4"
138 android:layout_width="0px"
139 android:layout_height="match_parent"
140 android:layout_weight="1"
141 androidprv:textView="@+id/simPinEntry"
142 androidprv:digit="4"
143 />
144 <com.android.keyguard.NumPadKey
145 android:id="@+id/key5"
146 android:layout_width="0px"
147 android:layout_height="match_parent"
148 android:layout_weight="1"
149 androidprv:textView="@+id/simPinEntry"
150 androidprv:digit="5"
151 />
152 <com.android.keyguard.NumPadKey
153 android:id="@+id/key6"
154 android:layout_width="0px"
155 android:layout_height="match_parent"
156 android:layout_weight="1"
157 androidprv:textView="@+id/simPinEntry"
158 androidprv:digit="6"
159 />
160 </LinearLayout>
161 <LinearLayout
162 android:layout_width="match_parent"
163 android:layout_height="0dp"
164 android:orientation="horizontal"
165 android:layout_weight="1"
166 >
167 <com.android.keyguard.NumPadKey
168 android:id="@+id/key7"
169 android:layout_width="0px"
170 android:layout_height="match_parent"
171 android:layout_weight="1"
172 androidprv:textView="@+id/simPinEntry"
173 androidprv:digit="7"
174 />
175 <com.android.keyguard.NumPadKey
176 android:id="@+id/key8"
177 android:layout_width="0px"
178 android:layout_height="match_parent"
179 android:layout_weight="1"
180 androidprv:textView="@+id/simPinEntry"
181 androidprv:digit="8"
182 />
183 <com.android.keyguard.NumPadKey
184 android:id="@+id/key9"
185 android:layout_width="0px"
186 android:layout_height="match_parent"
187 android:layout_weight="1"
188 androidprv:textView="@+id/simPinEntry"
189 androidprv:digit="9"
190 />
191 </LinearLayout>
192 <LinearLayout
193 android:layout_width="match_parent"
194 android:layout_height="0dp"
195 android:layout_weight="1"
196 android:orientation="horizontal"
197 >
198 <Space
199 android:layout_width="0px"
200 android:layout_height="match_parent"
201 android:layout_weight="1"
202 />
203 <com.android.keyguard.NumPadKey
204 android:id="@+id/key0"
205 android:layout_width="0px"
206 android:layout_height="match_parent"
207 android:layout_weight="1"
208 androidprv:textView="@+id/simPinEntry"
209 androidprv:digit="0"
210 />
211 <ImageButton
212 android:id="@+id/key_enter"
213 android:layout_width="0px"
214 android:layout_height="match_parent"
215 android:layout_weight="1"
216 android:paddingBottom="11sp"
Lucas Dupin6a526082017-08-02 15:26:14 -0700217 android:src="@drawable/ic_done_black_24dp"
Lucas Dupin987f1932017-05-13 21:02:52 -0700218 style="@style/Keyguard.ImageButton.NumPadEnter"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700219 android:background="@drawable/ripple_drawable"
220 android:contentDescription="@string/keyboardview_keycode_enter"
221 />
222 </LinearLayout>
Jim Millerdcb3d842012-08-23 19:18:12 -0700223 </LinearLayout>
224
Jim Miller9e0a2502012-11-07 21:23:32 -0800225 <include layout="@layout/keyguard_eca"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700226 android:id="@+id/keyguard_selector_fade_container"
227 android:layout_width="match_parent"
228 android:layout_height="wrap_content"
229 android:orientation="vertical"
230 android:layout_gravity="bottom|center_horizontal"
231 android:gravity="center_horizontal"/>
Jim Miller3af630c2012-09-26 14:29:18 -0700232
Jim Miller5ecd8112013-01-09 18:50:26 -0800233</com.android.keyguard.KeyguardSimPinView>