keyguard_sim_puk_view.xml revision 5ecd81154fa039961f65bb4e36d18ac555b0d1d6
1<?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-->
19<!-- 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. -->
21<com.android.keyguard.KeyguardSimPukView
22    xmlns:android="http://schemas.android.com/apk/res/android"
23    xmlns:androidprv="http://schemas.android.com/apk/res/com.android.keyguard"
24    android:id="@+id/keyguard_sim_puk_view"
25    android:orientation="vertical"
26    android:layout_width="match_parent"
27    android:layout_height="match_parent"
28    androidprv:layout_maxWidth="@dimen/keyguard_security_width"
29    androidprv:layout_maxHeight="@dimen/keyguard_security_height"
30    android:gravity="center_horizontal">
31
32    <ImageView
33        android:layout_width="match_parent"
34        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
42       android:id="@+id/keyguard_bouncer_frame"
43       android:background="@drawable/kg_bouncer_bg_white"
44       android:layout_width="match_parent"
45       android:layout_height="0dp"
46       android:orientation="vertical"
47       android:layout_weight="1"
48       android:layoutDirection="ltr"
49       >
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"
62               android:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left"
63               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"
73               android:src="@drawable/ic_input_delete"
74               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           >
94           <view class="com.android.keyguard.NumPadKey"
95               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               />
103           <view class="com.android.keyguard.NumPadKey"
104               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               />
112           <view class="com.android.keyguard.NumPadKey"
113               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           >
128           <view class="com.android.keyguard.NumPadKey"
129               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               />
137           <view class="com.android.keyguard.NumPadKey"
138               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               />
146           <view class="com.android.keyguard.NumPadKey"
147               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           >
162           <view class="com.android.keyguard.NumPadKey"
163               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               />
171           <view class="com.android.keyguard.NumPadKey"
172               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               />
180           <view class="com.android.keyguard.NumPadKey"
181               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               />
201           <view class="com.android.keyguard.NumPadKey"
202               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>
221    </LinearLayout>
222
223    <include layout="@layout/keyguard_eca"
224                   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" />
230</com.android.keyguard.KeyguardSimPukView>
231