blob: 00c6a21de0bb096eb482dfd2df5528151871f52e [file] [log] [blame]
Daniel Sandler69bdee72012-10-23 16:45:50 -04001<?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
Jim Miller5ecd8112013-01-09 18:50:26 -080020<com.android.keyguard.KeyguardPINView
Daniel Sandler69bdee72012-10-23 16:45:50 -040021 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"
Daniel Sandler69bdee72012-10-23 16:45:50 -040023 android:id="@+id/keyguard_pin_view"
Daniel Sandler8a26bf52012-10-30 13:29:50 -040024 android:layout_width="match_parent"
25 android:layout_height="match_parent"
Jim Miller5ecd8112013-01-09 18:50:26 -080026 androidprv:layout_maxWidth="@dimen/keyguard_security_width"
27 androidprv:layout_maxHeight="@dimen/keyguard_security_height"
Daniel Sandler69bdee72012-10-23 16:45:50 -040028 android:orientation="vertical"
Svetoslav Ganovc4842c12012-10-31 14:33:32 -070029 android:contentDescription="@string/keyguard_accessibility_pin_unlock"
Daniel Sandler69bdee72012-10-23 16:45:50 -040030 >
Jim Miller0b728242012-10-28 19:42:30 -070031 <include layout="@layout/keyguard_message_area"
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 />
Daniel Sandler69bdee72012-10-23 16:45:50 -040035 <LinearLayout
Chris Wrenc0ae9e62012-11-05 13:16:31 -050036 android:id="@+id/keyguard_bouncer_frame"
Jim Miller5ecd8112013-01-09 18:50:26 -080037 android:background="@drawable/kg_bouncer_bg_white"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050038 android:layout_width="match_parent"
39 android:layout_height="0dp"
40 android:orientation="vertical"
41 android:layout_weight="1"
Jim Miller05163aa2012-11-14 18:35:02 -080042 android:layoutDirection="ltr"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050043 >
44 <LinearLayout
45 android:layout_width="match_parent"
46 android:layout_height="0dp"
47 android:orientation="horizontal"
48 android:layout_weight="1"
49 >
50 <TextView android:id="@+id/pinEntry"
51 android:editable="true"
52 android:layout_width="0dip"
53 android:layout_height="match_parent"
54 android:layout_weight="1"
55 android:gravity="center"
Jim Miller5ecd8112013-01-09 18:50:26 -080056 android:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050057 android:singleLine="true"
58 android:cursorVisible="false"
59 android:background="@null"
60 android:textAppearance="@style/TextAppearance.NumPadKey"
61 android:imeOptions="flagForceAscii|actionDone"
62 />
63 <ImageButton android:id="@+id/delete_button"
64 android:layout_width="wrap_content"
65 android:layout_height="match_parent"
66 android:gravity="center_vertical"
Jim Miller5ecd8112013-01-09 18:50:26 -080067 android:src="@drawable/ic_input_delete"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050068 android:clickable="true"
69 android:paddingTop="8dip"
70 android:paddingBottom="8dip"
71 android:paddingLeft="24dp"
72 android:paddingRight="24dp"
73 android:background="?android:attr/selectableItemBackground"
74 android:contentDescription="@string/keyboardview_keycode_delete"
75 />
76 </LinearLayout>
77 <View
78 android:layout_width="wrap_content"
79 android:layout_height="1dp"
80 android:background="#55FFFFFF"
81 />
82 <LinearLayout
83 android:layout_width="match_parent"
84 android:layout_height="0dp"
85 android:layout_weight="1"
86 android:orientation="horizontal"
87 >
Jim Miller5ecd8112013-01-09 18:50:26 -080088 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050089 android:id="@+id/key1"
90 style="@style/Widget.Button.NumPadKey"
91 android:layout_width="0px"
92 android:layout_height="match_parent"
93 android:layout_weight="1"
94 androidprv:textView="@+id/pinEntry"
95 androidprv:digit="1"
96 />
Jim Miller5ecd8112013-01-09 18:50:26 -080097 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050098 android:id="@+id/key2"
99 style="@style/Widget.Button.NumPadKey"
100 android:layout_width="0px"
101 android:layout_height="match_parent"
102 android:layout_weight="1"
103 androidprv:textView="@+id/pinEntry"
104 androidprv:digit="2"
105 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800106 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500107 android:id="@+id/key3"
108 style="@style/Widget.Button.NumPadKey"
109 android:layout_width="0px"
110 android:layout_height="match_parent"
111 android:layout_weight="1"
112 androidprv:textView="@+id/pinEntry"
113 androidprv:digit="3"
114 />
115 </LinearLayout>
116 <LinearLayout
117 android:layout_width="match_parent"
118 android:layout_height="0dp"
119 android:layout_weight="1"
120 android:orientation="horizontal"
121 >
Jim Miller5ecd8112013-01-09 18:50:26 -0800122 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500123 android:id="@+id/key4"
124 style="@style/Widget.Button.NumPadKey"
125 android:layout_width="0px"
126 android:layout_height="match_parent"
127 android:layout_weight="1"
128 androidprv:textView="@+id/pinEntry"
129 androidprv:digit="4"
130 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800131 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500132 android:id="@+id/key5"
133 style="@style/Widget.Button.NumPadKey"
134 android:layout_width="0px"
135 android:layout_height="match_parent"
136 android:layout_weight="1"
137 androidprv:textView="@+id/pinEntry"
138 androidprv:digit="5"
139 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800140 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500141 android:id="@+id/key6"
142 style="@style/Widget.Button.NumPadKey"
143 android:layout_width="0px"
144 android:layout_height="match_parent"
145 android:layout_weight="1"
146 androidprv:textView="@+id/pinEntry"
147 androidprv:digit="6"
148 />
149 </LinearLayout>
150 <LinearLayout
151 android:layout_width="match_parent"
152 android:layout_height="0dp"
153 android:orientation="horizontal"
154 android:layout_weight="1"
155 >
Jim Miller5ecd8112013-01-09 18:50:26 -0800156 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500157 android:id="@+id/key7"
158 style="@style/Widget.Button.NumPadKey"
159 android:layout_width="0px"
160 android:layout_height="match_parent"
161 android:layout_weight="1"
162 androidprv:textView="@+id/pinEntry"
163 androidprv:digit="7"
164 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800165 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500166 android:id="@+id/key8"
167 style="@style/Widget.Button.NumPadKey"
168 android:layout_width="0px"
169 android:layout_height="match_parent"
170 android:layout_weight="1"
171 androidprv:textView="@+id/pinEntry"
172 androidprv:digit="8"
173 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800174 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500175 android:id="@+id/key9"
176 style="@style/Widget.Button.NumPadKey"
177 android:layout_width="0px"
178 android:layout_height="match_parent"
179 android:layout_weight="1"
180 androidprv:textView="@+id/pinEntry"
181 androidprv:digit="9"
182 />
183 </LinearLayout>
184 <LinearLayout
185 android:layout_width="match_parent"
186 android:layout_height="0dp"
187 android:layout_weight="1"
188 android:orientation="horizontal"
189 >
190 <Space
191 android:layout_width="0px"
192 android:layout_height="match_parent"
193 android:layout_weight="1"
194 />
Jim Miller5ecd8112013-01-09 18:50:26 -0800195 <view class="com.android.keyguard.NumPadKey"
Chris Wrenc0ae9e62012-11-05 13:16:31 -0500196 android:id="@+id/key0"
197 style="@style/Widget.Button.NumPadKey"
198 android:layout_width="0px"
199 android:layout_height="match_parent"
200 android:layout_weight="1"
201 androidprv:textView="@+id/pinEntry"
202 androidprv:digit="0"
203 />
204 <ImageButton
205 android:id="@+id/key_enter"
206 style="@style/Widget.Button.NumPadKey"
207 android:layout_width="0px"
208 android:layout_height="match_parent"
209 android:layout_weight="1"
210 android:paddingRight="30dp"
211 android:src="@drawable/sym_keyboard_return_holo"
212 android:contentDescription="@string/keyboardview_keycode_enter"
213 />
214 </LinearLayout>
Daniel Sandler69bdee72012-10-23 16:45:50 -0400215 </LinearLayout>
Jim Miller9e0a2502012-11-07 21:23:32 -0800216 <include layout="@layout/keyguard_eca"
Daniel Sandler51d39f22012-10-25 01:17:22 -0400217 android:id="@+id/keyguard_selector_fade_container"
218 android:layout_width="match_parent"
219 android:layout_height="wrap_content"
220 android:orientation="vertical"
221 android:layout_gravity="bottom|center_horizontal"
222 android:gravity="center_horizontal" />
223
Jim Miller5ecd8112013-01-09 18:50:26 -0800224</com.android.keyguard.KeyguardPINView>