blob: eccac19cfacbad49714e959eb705fb632c6161c2 [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
Jim Millerdcb3d842012-08-23 19:18:12 -070021 xmlns:android="http://schemas.android.com/apk/res/android"
Jim Miller5ecd8112013-01-09 18:50:26 -080022 xmlns:androidprv="http://schemas.android.com/apk/res/com.android.keyguard"
Jim Millerdcb3d842012-08-23 19:18:12 -070023 android:id="@+id/keyguard_sim_pin_view"
24 android:orientation="vertical"
25 android:layout_width="match_parent"
26 android:layout_height="match_parent"
Jim Miller5ecd8112013-01-09 18:50:26 -080027 androidprv:layout_maxWidth="@dimen/keyguard_security_width"
28 androidprv:layout_maxHeight="@dimen/keyguard_security_height"
Jim Millerdcb3d842012-08-23 19:18:12 -070029 android:gravity="center_horizontal">
30
Daniel Sandler53149e62012-11-01 22:00:07 -040031 <ImageView
Jim Miller7dfc5882012-11-05 22:45:35 -080032 android:layout_width="match_parent"
Daniel Sandler53149e62012-11-01 22:00:07 -040033 android:layout_height="wrap_content"
34 android:src="@drawable/ic_lockscreen_sim"/>
35
36 <include layout="@layout/keyguard_message_area"
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 />
40 <LinearLayout
Chris Wrenc0ae9e62012-11-05 13:16:31 -050041 android:id="@+id/keyguard_bouncer_frame"
Jim Miller5ecd8112013-01-09 18:50:26 -080042 android:background="@drawable/kg_bouncer_bg_white"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050043 android:layout_width="match_parent"
44 android:layout_height="0dp"
45 android:orientation="vertical"
46 android:layout_weight="1"
Jim Miller05163aa2012-11-14 18:35:02 -080047 android:layoutDirection="ltr"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050048 >
49 <LinearLayout
50 android:layout_width="match_parent"
51 android:layout_height="0dp"
52 android:orientation="horizontal"
53 android:layout_weight="1"
54 >
55 <TextView android:id="@+id/pinEntry"
56 android:editable="true"
57 android:layout_width="0dip"
58 android:layout_height="match_parent"
59 android:layout_weight="1"
60 android:gravity="center"
Jim Miller5ecd8112013-01-09 18:50:26 -080061 android:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050062 android:singleLine="true"
63 android:cursorVisible="false"
64 android:background="@null"
65 android:textAppearance="@style/TextAppearance.NumPadKey"
66 android:imeOptions="flagForceAscii|actionDone"
67 />
68 <ImageButton android:id="@+id/delete_button"
69 android:layout_width="wrap_content"
70 android:layout_height="match_parent"
71 android:gravity="center_vertical"
Jim Miller5ecd8112013-01-09 18:50:26 -080072 android:src="@drawable/ic_input_delete"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050073 android:clickable="true"
74 android:paddingTop="8dip"
75 android:paddingBottom="8dip"
76 android:paddingLeft="24dp"
77 android:paddingRight="24dp"
78 android:background="?android:attr/selectableItemBackground"
79 android:contentDescription="@string/keyboardview_keycode_delete"
80 />
81 </LinearLayout>
82 <View
83 android:layout_width="wrap_content"
84 android:layout_height="1dp"
85 android:background="#55FFFFFF"
86 />
87 <LinearLayout
88 android:layout_width="match_parent"
89 android:layout_height="0dp"
90 android:layout_weight="1"
91 android:orientation="horizontal"
92 >
Jim Miller5ecd8112013-01-09 18:50:26 -080093 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050094 android:id="@+id/key1"
95 style="@style/Widget.Button.NumPadKey"
96 android:layout_width="0px"
97 android:layout_height="match_parent"
98 android:layout_weight="1"
99 androidprv:textView="@+id/pinEntry"
100 androidprv:digit="1"
101 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800102 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500103 android:id="@+id/key2"
104 style="@style/Widget.Button.NumPadKey"
105 android:layout_width="0px"
106 android:layout_height="match_parent"
107 android:layout_weight="1"
108 androidprv:textView="@+id/pinEntry"
109 androidprv:digit="2"
110 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800111 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500112 android:id="@+id/key3"
113 style="@style/Widget.Button.NumPadKey"
114 android:layout_width="0px"
115 android:layout_height="match_parent"
116 android:layout_weight="1"
117 androidprv:textView="@+id/pinEntry"
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 >
Jim Miller5ecd8112013-01-09 18:50:26 -0800127 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500128 android:id="@+id/key4"
129 style="@style/Widget.Button.NumPadKey"
130 android:layout_width="0px"
131 android:layout_height="match_parent"
132 android:layout_weight="1"
133 androidprv:textView="@+id/pinEntry"
134 androidprv:digit="4"
135 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800136 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500137 android:id="@+id/key5"
138 style="@style/Widget.Button.NumPadKey"
139 android:layout_width="0px"
140 android:layout_height="match_parent"
141 android:layout_weight="1"
142 androidprv:textView="@+id/pinEntry"
143 androidprv:digit="5"
144 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800145 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500146 android:id="@+id/key6"
147 style="@style/Widget.Button.NumPadKey"
148 android:layout_width="0px"
149 android:layout_height="match_parent"
150 android:layout_weight="1"
151 androidprv:textView="@+id/pinEntry"
152 androidprv:digit="6"
153 />
154 </LinearLayout>
155 <LinearLayout
156 android:layout_width="match_parent"
157 android:layout_height="0dp"
158 android:orientation="horizontal"
159 android:layout_weight="1"
160 >
Jim Miller5ecd8112013-01-09 18:50:26 -0800161 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500162 android:id="@+id/key7"
163 style="@style/Widget.Button.NumPadKey"
164 android:layout_width="0px"
165 android:layout_height="match_parent"
166 android:layout_weight="1"
167 androidprv:textView="@+id/pinEntry"
168 androidprv:digit="7"
169 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800170 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500171 android:id="@+id/key8"
172 style="@style/Widget.Button.NumPadKey"
173 android:layout_width="0px"
174 android:layout_height="match_parent"
175 android:layout_weight="1"
176 androidprv:textView="@+id/pinEntry"
177 androidprv:digit="8"
178 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800179 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500180 android:id="@+id/key9"
181 style="@style/Widget.Button.NumPadKey"
182 android:layout_width="0px"
183 android:layout_height="match_parent"
184 android:layout_weight="1"
185 androidprv:textView="@+id/pinEntry"
186 androidprv:digit="9"
187 />
188 </LinearLayout>
189 <LinearLayout
190 android:layout_width="match_parent"
191 android:layout_height="0dp"
192 android:layout_weight="1"
193 android:orientation="horizontal"
194 >
195 <Space
196 android:layout_width="0px"
197 android:layout_height="match_parent"
198 android:layout_weight="1"
199 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800200 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500201 android:id="@+id/key0"
202 style="@style/Widget.Button.NumPadKey"
203 android:layout_width="0px"
204 android:layout_height="match_parent"
205 android:layout_weight="1"
206 androidprv:textView="@+id/pinEntry"
207 androidprv:digit="0"
208 />
209 <ImageButton
210 android:id="@+id/key_enter"
211 style="@style/Widget.Button.NumPadKey"
212 android:layout_width="0px"
213 android:layout_height="match_parent"
214 android:layout_weight="1"
215 android:paddingRight="30dp"
216 android:src="@drawable/sym_keyboard_return_holo"
217 android:contentDescription="@string/keyboardview_keycode_enter"
218 />
219 </LinearLayout>
Jim Millerdcb3d842012-08-23 19:18:12 -0700220 </LinearLayout>
221
Jim Miller9e0a2502012-11-07 21:23:32 -0800222 <include layout="@layout/keyguard_eca"
Daniel Sandler53149e62012-11-01 22:00:07 -0400223 android:id="@+id/keyguard_selector_fade_container"
224 android:layout_width="match_parent"
225 android:layout_height="wrap_content"
226 android:orientation="vertical"
227 android:layout_gravity="bottom|center_horizontal"
228 android:gravity="center_horizontal" />
Jim Miller3af630c2012-09-26 14:29:18 -0700229
Jim Miller5ecd8112013-01-09 18:50:26 -0800230</com.android.keyguard.KeyguardSimPinView>