blob: bfb5bf9c04999dcd07cad4afae6462a076ee9a51 [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"
Lucas Dupin0e992fb2017-11-06 15:13:13 -080035 android:tint="@color/background_protected"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070036 android:src="@drawable/ic_lockscreen_sim"/>
Daniel Sandler53149e62012-11-01 22:00: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 Sandler53149e62012-11-01 22:00: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"
qingxi3d768742017-04-12 11:07:11 -070052 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
54 android:layout_marginTop="@dimen/eca_overlap" />
55
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/simPinEntry"
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_pin_area"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070073 />
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070074 <View
75 android:id="@+id/divider"
76 android:layout_width="match_parent"
77 android:layout_height="1dp"
78 android:layout_alignParentBottom="true"
Lucas Dupin987f1932017-05-13 21:02:52 -070079 android:background="@drawable/pin_divider"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070080 />
81 </RelativeLayout>
82 <LinearLayout
83 android:layout_width="match_parent"
84 android:layout_height="0dp"
85 android:layout_weight="1"
86 android:orientation="horizontal"
87 >
88 <com.android.keyguard.NumPadKey
89 android:id="@+id/key1"
90 android:layout_width="0px"
91 android:layout_height="match_parent"
92 android:layout_weight="1"
93 androidprv:textView="@+id/simPinEntry"
94 androidprv:digit="1"
95 />
96 <com.android.keyguard.NumPadKey
97 android:id="@+id/key2"
98 android:layout_width="0px"
99 android:layout_height="match_parent"
100 android:layout_weight="1"
101 androidprv:textView="@+id/simPinEntry"
102 androidprv:digit="2"
103 />
104 <com.android.keyguard.NumPadKey
105 android:id="@+id/key3"
106 android:layout_width="0px"
107 android:layout_height="match_parent"
108 android:layout_weight="1"
109 androidprv:textView="@+id/simPinEntry"
110 androidprv:digit="3"
111 />
112 </LinearLayout>
113 <LinearLayout
114 android:layout_width="match_parent"
115 android:layout_height="0dp"
116 android:layout_weight="1"
117 android:orientation="horizontal"
118 >
119 <com.android.keyguard.NumPadKey
120 android:id="@+id/key4"
121 android:layout_width="0px"
122 android:layout_height="match_parent"
123 android:layout_weight="1"
124 androidprv:textView="@+id/simPinEntry"
125 androidprv:digit="4"
126 />
127 <com.android.keyguard.NumPadKey
128 android:id="@+id/key5"
129 android:layout_width="0px"
130 android:layout_height="match_parent"
131 android:layout_weight="1"
132 androidprv:textView="@+id/simPinEntry"
133 androidprv:digit="5"
134 />
135 <com.android.keyguard.NumPadKey
136 android:id="@+id/key6"
137 android:layout_width="0px"
138 android:layout_height="match_parent"
139 android:layout_weight="1"
140 androidprv:textView="@+id/simPinEntry"
141 androidprv:digit="6"
142 />
143 </LinearLayout>
144 <LinearLayout
145 android:layout_width="match_parent"
146 android:layout_height="0dp"
147 android:orientation="horizontal"
148 android:layout_weight="1"
149 >
150 <com.android.keyguard.NumPadKey
151 android:id="@+id/key7"
152 android:layout_width="0px"
153 android:layout_height="match_parent"
154 android:layout_weight="1"
155 androidprv:textView="@+id/simPinEntry"
156 androidprv:digit="7"
157 />
158 <com.android.keyguard.NumPadKey
159 android:id="@+id/key8"
160 android:layout_width="0px"
161 android:layout_height="match_parent"
162 android:layout_weight="1"
163 androidprv:textView="@+id/simPinEntry"
164 androidprv:digit="8"
165 />
166 <com.android.keyguard.NumPadKey
167 android:id="@+id/key9"
168 android:layout_width="0px"
169 android:layout_height="match_parent"
170 android:layout_weight="1"
171 androidprv:textView="@+id/simPinEntry"
172 androidprv:digit="9"
173 />
174 </LinearLayout>
175 <LinearLayout
176 android:layout_width="match_parent"
177 android:layout_height="0dp"
178 android:layout_weight="1"
179 android:orientation="horizontal"
180 >
Lucas Dupine3c9ccc2018-10-23 14:44:04 -0700181 <com.android.keyguard.AlphaOptimizedImageButton
182 android:id="@+id/delete_button"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700183 android:layout_width="0px"
184 android:layout_height="match_parent"
185 android:layout_weight="1"
Lucas Dupine3c9ccc2018-10-23 14:44:04 -0700186 android:background="@drawable/ripple_drawable_pin"
187 android:contentDescription="@string/keyboardview_keycode_delete"
188 style="@style/Keyguard.ImageButton.NumPadDelete"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700189 />
190 <com.android.keyguard.NumPadKey
191 android:id="@+id/key0"
192 android:layout_width="0px"
193 android:layout_height="match_parent"
194 android:layout_weight="1"
195 androidprv:textView="@+id/simPinEntry"
196 androidprv:digit="0"
197 />
Lucas Dupine3c9ccc2018-10-23 14:44:04 -0700198 <com.android.keyguard.AlphaOptimizedImageButton
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700199 android:id="@+id/key_enter"
200 android:layout_width="0px"
201 android:layout_height="match_parent"
202 android:layout_weight="1"
Lucas Dupin987f1932017-05-13 21:02:52 -0700203 style="@style/Keyguard.ImageButton.NumPadEnter"
Lucas Dupine3c9ccc2018-10-23 14:44:04 -0700204 android:background="@drawable/ripple_drawable_pin"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700205 android:contentDescription="@string/keyboardview_keycode_enter"
206 />
207 </LinearLayout>
Jim Millerdcb3d842012-08-23 19:18:12 -0700208 </LinearLayout>
209
Jim Miller9e0a2502012-11-07 21:23:32 -0800210 <include layout="@layout/keyguard_eca"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700211 android:id="@+id/keyguard_selector_fade_container"
212 android:layout_width="match_parent"
213 android:layout_height="wrap_content"
214 android:orientation="vertical"
215 android:layout_gravity="bottom|center_horizontal"
216 android:gravity="center_horizontal"/>
Jim Miller3af630c2012-09-26 14:29:18 -0700217
Jim Miller5ecd8112013-01-09 18:50:26 -0800218</com.android.keyguard.KeyguardSimPinView>