blob: fe372036d59b15fbf2f2479201cf075ae451367d [file] [log] [blame]
Jim Millerdcb3d842012-08-23 19:18:12 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2008, 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-->
Jim Miller3efe1062012-09-28 16:59:31 -070019<!-- This is the SIM PUK view that allows the user to recover their device by entering the
20 carrier-provided PUK code and entering a new SIM PIN for it. -->
Jim Miller5ecd8112013-01-09 18:50:26 -080021<com.android.keyguard.KeyguardSimPukView
Jim Millerdcb3d842012-08-23 19:18:12 -070022 xmlns:android="http://schemas.android.com/apk/res/android"
Jim Miller5ecd8112013-01-09 18:50:26 -080023 xmlns:androidprv="http://schemas.android.com/apk/res/com.android.keyguard"
Jim Millerdcb3d842012-08-23 19:18:12 -070024 android:id="@+id/keyguard_sim_puk_view"
Daniel Sandler23d7a6e2012-11-02 00:21:07 -040025 android:orientation="vertical"
Jim Millerdcb3d842012-08-23 19:18:12 -070026 android:layout_width="match_parent"
27 android:layout_height="match_parent"
Jim Miller5ecd8112013-01-09 18:50:26 -080028 androidprv:layout_maxWidth="@dimen/keyguard_security_width"
29 androidprv:layout_maxHeight="@dimen/keyguard_security_height"
Jim Millerdcb3d842012-08-23 19:18:12 -070030 android:gravity="center_horizontal">
31
Daniel Sandler23d7a6e2012-11-02 00:21:07 -040032 <ImageView
Jim Miller7dfc5882012-11-05 22:45:35 -080033 android:layout_width="match_parent"
Daniel Sandler23d7a6e2012-11-02 00:21:07 -040034 android:layout_height="wrap_content"
35 android:src="@drawable/ic_lockscreen_sim"/>
36
37 <include layout="@layout/keyguard_message_area"
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 />
41 <LinearLayout
Chris Wrenc0ae9e62012-11-05 13:16:31 -050042 android:id="@+id/keyguard_bouncer_frame"
Jim Miller5ecd8112013-01-09 18:50:26 -080043 android:background="@drawable/kg_bouncer_bg_white"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050044 android:layout_width="match_parent"
45 android:layout_height="0dp"
46 android:orientation="vertical"
47 android:layout_weight="1"
Jim Miller05163aa2012-11-14 18:35:02 -080048 android:layoutDirection="ltr"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050049 >
50 <LinearLayout
51 android:layout_width="match_parent"
52 android:layout_height="0dp"
53 android:orientation="horizontal"
54 android:layout_weight="1"
55 >
56 <TextView android:id="@+id/pinEntry"
57 android:editable="true"
58 android:layout_width="0dip"
59 android:layout_height="match_parent"
60 android:layout_weight="1"
61 android:gravity="center"
Jim Miller5ecd8112013-01-09 18:50:26 -080062 android:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050063 android:singleLine="true"
64 android:cursorVisible="false"
65 android:background="@null"
66 android:textAppearance="@style/TextAppearance.NumPadKey"
67 android:imeOptions="flagForceAscii|actionDone"
68 />
69 <ImageButton android:id="@+id/delete_button"
70 android:layout_width="wrap_content"
71 android:layout_height="match_parent"
72 android:gravity="center_vertical"
Jim Miller5ecd8112013-01-09 18:50:26 -080073 android:src="@drawable/ic_input_delete"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050074 android:clickable="true"
75 android:paddingTop="8dip"
76 android:paddingBottom="8dip"
77 android:paddingLeft="24dp"
78 android:paddingRight="24dp"
79 android:background="?android:attr/selectableItemBackground"
80 android:contentDescription="@string/keyboardview_keycode_delete"
81 />
82 </LinearLayout>
83 <View
84 android:layout_width="wrap_content"
85 android:layout_height="1dp"
86 android:background="#55FFFFFF"
87 />
88 <LinearLayout
89 android:layout_width="match_parent"
90 android:layout_height="0dp"
91 android:layout_weight="1"
92 android:orientation="horizontal"
93 >
Jim Miller5ecd8112013-01-09 18:50:26 -080094 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050095 android:id="@+id/key1"
96 style="@style/Widget.Button.NumPadKey"
97 android:layout_width="0px"
98 android:layout_height="match_parent"
99 android:layout_weight="1"
100 androidprv:textView="@+id/pinEntry"
101 androidprv:digit="1"
102 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800103 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500104 android:id="@+id/key2"
105 style="@style/Widget.Button.NumPadKey"
106 android:layout_width="0px"
107 android:layout_height="match_parent"
108 android:layout_weight="1"
109 androidprv:textView="@+id/pinEntry"
110 androidprv:digit="2"
111 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800112 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500113 android:id="@+id/key3"
114 style="@style/Widget.Button.NumPadKey"
115 android:layout_width="0px"
116 android:layout_height="match_parent"
117 android:layout_weight="1"
118 androidprv:textView="@+id/pinEntry"
119 androidprv:digit="3"
120 />
121 </LinearLayout>
122 <LinearLayout
123 android:layout_width="match_parent"
124 android:layout_height="0dp"
125 android:layout_weight="1"
126 android:orientation="horizontal"
127 >
Jim Miller5ecd8112013-01-09 18:50:26 -0800128 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500129 android:id="@+id/key4"
130 style="@style/Widget.Button.NumPadKey"
131 android:layout_width="0px"
132 android:layout_height="match_parent"
133 android:layout_weight="1"
134 androidprv:textView="@+id/pinEntry"
135 androidprv:digit="4"
136 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800137 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500138 android:id="@+id/key5"
139 style="@style/Widget.Button.NumPadKey"
140 android:layout_width="0px"
141 android:layout_height="match_parent"
142 android:layout_weight="1"
143 androidprv:textView="@+id/pinEntry"
144 androidprv:digit="5"
145 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800146 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500147 android:id="@+id/key6"
148 style="@style/Widget.Button.NumPadKey"
149 android:layout_width="0px"
150 android:layout_height="match_parent"
151 android:layout_weight="1"
152 androidprv:textView="@+id/pinEntry"
153 androidprv:digit="6"
154 />
155 </LinearLayout>
156 <LinearLayout
157 android:layout_width="match_parent"
158 android:layout_height="0dp"
159 android:orientation="horizontal"
160 android:layout_weight="1"
161 >
Jim Miller5ecd8112013-01-09 18:50:26 -0800162 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500163 android:id="@+id/key7"
164 style="@style/Widget.Button.NumPadKey"
165 android:layout_width="0px"
166 android:layout_height="match_parent"
167 android:layout_weight="1"
168 androidprv:textView="@+id/pinEntry"
169 androidprv:digit="7"
170 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800171 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500172 android:id="@+id/key8"
173 style="@style/Widget.Button.NumPadKey"
174 android:layout_width="0px"
175 android:layout_height="match_parent"
176 android:layout_weight="1"
177 androidprv:textView="@+id/pinEntry"
178 androidprv:digit="8"
179 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800180 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500181 android:id="@+id/key9"
182 style="@style/Widget.Button.NumPadKey"
183 android:layout_width="0px"
184 android:layout_height="match_parent"
185 android:layout_weight="1"
186 androidprv:textView="@+id/pinEntry"
187 androidprv:digit="9"
188 />
189 </LinearLayout>
190 <LinearLayout
191 android:layout_width="match_parent"
192 android:layout_height="0dp"
193 android:layout_weight="1"
194 android:orientation="horizontal"
195 >
196 <Space
197 android:layout_width="0px"
198 android:layout_height="match_parent"
199 android:layout_weight="1"
200 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800201 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500202 android:id="@+id/key0"
203 style="@style/Widget.Button.NumPadKey"
204 android:layout_width="0px"
205 android:layout_height="match_parent"
206 android:layout_weight="1"
207 androidprv:textView="@+id/pinEntry"
208 androidprv:digit="0"
209 />
210 <ImageButton
211 android:id="@+id/key_enter"
212 style="@style/Widget.Button.NumPadKey"
213 android:layout_width="0px"
214 android:layout_height="match_parent"
215 android:layout_weight="1"
216 android:paddingRight="30dp"
217 android:src="@drawable/sym_keyboard_return_holo"
218 android:contentDescription="@string/keyboardview_keycode_enter"
219 />
220 </LinearLayout>
Jim Millerdcb3d842012-08-23 19:18:12 -0700221 </LinearLayout>
222
Jim Miller9e0a2502012-11-07 21:23:32 -0800223 <include layout="@layout/keyguard_eca"
Daniel Sandler23d7a6e2012-11-02 00:21:07 -0400224 android:id="@+id/keyguard_selector_fade_container"
225 android:layout_width="match_parent"
226 android:layout_height="wrap_content"
227 android:orientation="vertical"
228 android:layout_gravity="bottom|center_horizontal"
229 android:gravity="center_horizontal" />
Jim Miller5ecd8112013-01-09 18:50:26 -0800230</com.android.keyguard.KeyguardSimPukView>