blob: 929fa09f3cbcacc07ae67e86a2c9ce3df0c91992 [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:id="@+id/keyguard_bouncer_frame"
43 android:layout_width="match_parent"
44 android:layout_height="0dp"
45 android:orientation="vertical"
46 android:layout_weight="1"
47 android:layoutDirection="ltr"
48 >
49 <RelativeLayout
50 android:id="@+id/row0"
51 android:layout_width="match_parent"
52 android:layout_height="0dp"
53 android:layout_weight="1"
54 android:paddingBottom="16dp"
55 >
56 <com.android.keyguard.PasswordTextView
57 android:id="@+id/simPinEntry"
58 android:layout_width="@dimen/keyguard_security_width"
59 android:layout_height="match_parent"
60 android:gravity="center"
61 android:layout_centerHorizontal="true"
62 android:layout_marginRight="72dp"
63 androidprv:scaledTextSize="28"
Jinsong Mudc6efdc2014-12-03 18:13:15 -080064 android:contentDescription="@string/keyguard_accessibility_sim_pin_area"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070065 />
66 <ImageButton
67 android:id="@+id/delete_button"
68 android:layout_width="wrap_content"
69 android:layout_height="match_parent"
70 android:gravity="center_vertical"
71 android:src="@drawable/ic_backspace_24dp"
72 android:clickable="true"
73 android:paddingTop="8dip"
74 android:paddingBottom="8dip"
75 android:paddingRight="8dp"
76 android:paddingLeft="24dp"
77 android:background="@drawable/ripple_drawable"
78 android:contentDescription="@string/keyboardview_keycode_delete"
79 android:layout_alignEnd="@+id/pinEntry"
80 android:layout_alignParentRight="true"
81 />
82 <View
83 android:id="@+id/divider"
84 android:layout_width="match_parent"
85 android:layout_height="1dp"
86 android:layout_alignParentBottom="true"
87 android:background="#28FFFFFF"
88 />
89 </RelativeLayout>
90 <LinearLayout
91 android:layout_width="match_parent"
92 android:layout_height="0dp"
93 android:layout_weight="1"
94 android:orientation="horizontal"
95 >
96 <com.android.keyguard.NumPadKey
97 android:id="@+id/key1"
98 android:layout_width="0px"
99 android:layout_height="match_parent"
100 android:layout_weight="1"
101 androidprv:textView="@+id/simPinEntry"
102 androidprv:digit="1"
103 />
104 <com.android.keyguard.NumPadKey
105 android:id="@+id/key2"
106 android:layout_width="0px"
107 android:layout_height="match_parent"
108 android:layout_weight="1"
109 androidprv:textView="@+id/simPinEntry"
110 androidprv:digit="2"
111 />
112 <com.android.keyguard.NumPadKey
113 android:id="@+id/key3"
114 android:layout_width="0px"
115 android:layout_height="match_parent"
116 android:layout_weight="1"
117 androidprv:textView="@+id/simPinEntry"
118 androidprv:digit="3"
119 />
120 </LinearLayout>
121 <LinearLayout
122 android:layout_width="match_parent"
123 android:layout_height="0dp"
124 android:layout_weight="1"
125 android:orientation="horizontal"
126 >
127 <com.android.keyguard.NumPadKey
128 android:id="@+id/key4"
129 android:layout_width="0px"
130 android:layout_height="match_parent"
131 android:layout_weight="1"
132 androidprv:textView="@+id/simPinEntry"
133 androidprv:digit="4"
134 />
135 <com.android.keyguard.NumPadKey
136 android:id="@+id/key5"
137 android:layout_width="0px"
138 android:layout_height="match_parent"
139 android:layout_weight="1"
140 androidprv:textView="@+id/simPinEntry"
141 androidprv:digit="5"
142 />
143 <com.android.keyguard.NumPadKey
144 android:id="@+id/key6"
145 android:layout_width="0px"
146 android:layout_height="match_parent"
147 android:layout_weight="1"
148 androidprv:textView="@+id/simPinEntry"
149 androidprv:digit="6"
150 />
151 </LinearLayout>
152 <LinearLayout
153 android:layout_width="match_parent"
154 android:layout_height="0dp"
155 android:orientation="horizontal"
156 android:layout_weight="1"
157 >
158 <com.android.keyguard.NumPadKey
159 android:id="@+id/key7"
160 android:layout_width="0px"
161 android:layout_height="match_parent"
162 android:layout_weight="1"
163 androidprv:textView="@+id/simPinEntry"
164 androidprv:digit="7"
165 />
166 <com.android.keyguard.NumPadKey
167 android:id="@+id/key8"
168 android:layout_width="0px"
169 android:layout_height="match_parent"
170 android:layout_weight="1"
171 androidprv:textView="@+id/simPinEntry"
172 androidprv:digit="8"
173 />
174 <com.android.keyguard.NumPadKey
175 android:id="@+id/key9"
176 android:layout_width="0px"
177 android:layout_height="match_parent"
178 android:layout_weight="1"
179 androidprv:textView="@+id/simPinEntry"
180 androidprv:digit="9"
181 />
182 </LinearLayout>
183 <LinearLayout
184 android:layout_width="match_parent"
185 android:layout_height="0dp"
186 android:layout_weight="1"
187 android:orientation="horizontal"
188 >
189 <Space
190 android:layout_width="0px"
191 android:layout_height="match_parent"
192 android:layout_weight="1"
193 />
194 <com.android.keyguard.NumPadKey
195 android:id="@+id/key0"
196 android:layout_width="0px"
197 android:layout_height="match_parent"
198 android:layout_weight="1"
199 androidprv:textView="@+id/simPinEntry"
200 androidprv:digit="0"
201 />
202 <ImageButton
203 android:id="@+id/key_enter"
204 android:layout_width="0px"
205 android:layout_height="match_parent"
206 android:layout_weight="1"
207 android:paddingBottom="11sp"
208 android:src="@drawable/ic_done_wht"
209 android:background="@drawable/ripple_drawable"
210 android:contentDescription="@string/keyboardview_keycode_enter"
211 />
212 </LinearLayout>
Jim Millerdcb3d842012-08-23 19:18:12 -0700213 </LinearLayout>
214
Jim Miller9e0a2502012-11-07 21:23:32 -0800215 <include layout="@layout/keyguard_eca"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700216 android:id="@+id/keyguard_selector_fade_container"
217 android:layout_width="match_parent"
218 android:layout_height="wrap_content"
219 android:orientation="vertical"
220 android:layout_gravity="bottom|center_horizontal"
221 android:gravity="center_horizontal"/>
Jim Miller3af630c2012-09-26 14:29:18 -0700222
Jim Miller5ecd8112013-01-09 18:50:26 -0800223</com.android.keyguard.KeyguardSimPinView>