keyguard_sim_pin_view.xml revision 9e0a2506006de1ca2fe5cf8144e34a9b89f73772
1<?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. -->
20<com.android.internal.policy.impl.keyguard.KeyguardSimPinView
21    xmlns:android="http://schemas.android.com/apk/res/android"
22    xmlns:androidprv="http://schemas.android.com/apk/res/android"
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    android:layout_maxWidth="@dimen/keyguard_security_width"
28    android:layout_maxHeight="@dimen/keyguard_security_height"
29    android:gravity="center_horizontal">
30
31    <ImageView
32        android:layout_width="match_parent"
33        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
41       android:id="@+id/keyguard_bouncer_frame"
42       android:background="@*android:drawable/kg_bouncer_bg_white"
43       android:layout_width="match_parent"
44       android:layout_height="0dp"
45       android:orientation="vertical"
46       android:layout_weight="1"
47       >
48       <LinearLayout
49           android:layout_width="match_parent"
50           android:layout_height="0dp"
51           android:orientation="horizontal"
52           android:layout_weight="1"
53           >
54           <TextView android:id="@+id/pinEntry"
55               android:editable="true"
56               android:layout_width="0dip"
57               android:layout_height="match_parent"
58               android:layout_weight="1"
59               android:gravity="center"
60               android:layout_marginStart="@*android:dimen/keyguard_lockscreen_pin_margin_left"
61               android:singleLine="true"
62               android:cursorVisible="false"
63               android:background="@null"
64               android:textAppearance="@style/TextAppearance.NumPadKey"
65               android:imeOptions="flagForceAscii|actionDone"
66               />
67           <ImageButton 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="@*android:drawable/ic_input_delete"
72               android:clickable="true"
73               android:paddingTop="8dip"
74               android:paddingBottom="8dip"
75               android:paddingLeft="24dp"
76               android:paddingRight="24dp"
77               android:background="?android:attr/selectableItemBackground"
78               android:contentDescription="@string/keyboardview_keycode_delete"
79               />
80       </LinearLayout>
81       <View
82           android:layout_width="wrap_content"
83           android:layout_height="1dp"
84           android:background="#55FFFFFF"
85           />
86       <LinearLayout
87           android:layout_width="match_parent"
88           android:layout_height="0dp"
89           android:layout_weight="1"
90           android:orientation="horizontal"
91           >
92           <view class="com.android.internal.policy.impl.keyguard.NumPadKey"
93               android:id="@+id/key1"
94               style="@style/Widget.Button.NumPadKey"
95               android:layout_width="0px"
96               android:layout_height="match_parent"
97               android:layout_weight="1"
98               androidprv:textView="@+id/pinEntry"
99               androidprv:digit="1"
100               />
101           <view class="com.android.internal.policy.impl.keyguard.NumPadKey"
102               android:id="@+id/key2"
103               style="@style/Widget.Button.NumPadKey"
104               android:layout_width="0px"
105               android:layout_height="match_parent"
106               android:layout_weight="1"
107               androidprv:textView="@+id/pinEntry"
108               androidprv:digit="2"
109               />
110           <view class="com.android.internal.policy.impl.keyguard.NumPadKey"
111               android:id="@+id/key3"
112               style="@style/Widget.Button.NumPadKey"
113               android:layout_width="0px"
114               android:layout_height="match_parent"
115               android:layout_weight="1"
116               androidprv:textView="@+id/pinEntry"
117               androidprv:digit="3"
118               />
119       </LinearLayout>
120       <LinearLayout
121           android:layout_width="match_parent"
122           android:layout_height="0dp"
123           android:layout_weight="1"
124           android:orientation="horizontal"
125           >
126           <view class="com.android.internal.policy.impl.keyguard.NumPadKey"
127               android:id="@+id/key4"
128               style="@style/Widget.Button.NumPadKey"
129               android:layout_width="0px"
130               android:layout_height="match_parent"
131               android:layout_weight="1"
132               androidprv:textView="@+id/pinEntry"
133               androidprv:digit="4"
134               />
135           <view class="com.android.internal.policy.impl.keyguard.NumPadKey"
136               android:id="@+id/key5"
137               style="@style/Widget.Button.NumPadKey"
138               android:layout_width="0px"
139               android:layout_height="match_parent"
140               android:layout_weight="1"
141               androidprv:textView="@+id/pinEntry"
142               androidprv:digit="5"
143               />
144           <view class="com.android.internal.policy.impl.keyguard.NumPadKey"
145               android:id="@+id/key6"
146               style="@style/Widget.Button.NumPadKey"
147               android:layout_width="0px"
148               android:layout_height="match_parent"
149               android:layout_weight="1"
150               androidprv:textView="@+id/pinEntry"
151               androidprv:digit="6"
152               />
153       </LinearLayout>
154       <LinearLayout
155           android:layout_width="match_parent"
156           android:layout_height="0dp"
157           android:orientation="horizontal"
158           android:layout_weight="1"
159           >
160           <view class="com.android.internal.policy.impl.keyguard.NumPadKey"
161               android:id="@+id/key7"
162               style="@style/Widget.Button.NumPadKey"
163               android:layout_width="0px"
164               android:layout_height="match_parent"
165               android:layout_weight="1"
166               androidprv:textView="@+id/pinEntry"
167               androidprv:digit="7"
168               />
169           <view class="com.android.internal.policy.impl.keyguard.NumPadKey"
170               android:id="@+id/key8"
171               style="@style/Widget.Button.NumPadKey"
172               android:layout_width="0px"
173               android:layout_height="match_parent"
174               android:layout_weight="1"
175               androidprv:textView="@+id/pinEntry"
176               androidprv:digit="8"
177               />
178           <view class="com.android.internal.policy.impl.keyguard.NumPadKey"
179               android:id="@+id/key9"
180               style="@style/Widget.Button.NumPadKey"
181               android:layout_width="0px"
182               android:layout_height="match_parent"
183               android:layout_weight="1"
184               androidprv:textView="@+id/pinEntry"
185               androidprv:digit="9"
186               />
187       </LinearLayout>
188       <LinearLayout
189           android:layout_width="match_parent"
190           android:layout_height="0dp"
191           android:layout_weight="1"
192           android:orientation="horizontal"
193           >
194           <Space
195               android:layout_width="0px"
196               android:layout_height="match_parent"
197               android:layout_weight="1"
198               />
199           <view class="com.android.internal.policy.impl.keyguard.NumPadKey"
200               android:id="@+id/key0"
201               style="@style/Widget.Button.NumPadKey"
202               android:layout_width="0px"
203               android:layout_height="match_parent"
204               android:layout_weight="1"
205               androidprv:textView="@+id/pinEntry"
206               androidprv:digit="0"
207               />
208           <ImageButton
209               android:id="@+id/key_enter"
210               style="@style/Widget.Button.NumPadKey"
211               android:layout_width="0px"
212               android:layout_height="match_parent"
213               android:layout_weight="1"
214               android:paddingRight="30dp"
215               android:src="@drawable/sym_keyboard_return_holo"
216               android:contentDescription="@string/keyboardview_keycode_enter"
217               />
218       </LinearLayout>
219    </LinearLayout>
220
221    <include layout="@layout/keyguard_eca"
222                   android:id="@+id/keyguard_selector_fade_container"
223                   android:layout_width="match_parent"
224                   android:layout_height="wrap_content"
225                   android:orientation="vertical"
226                   android:layout_gravity="bottom|center_horizontal"
227                   android:gravity="center_horizontal" />
228
229</com.android.internal.policy.impl.keyguard.KeyguardSimPinView>
230