Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 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. --> |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 20 | <com.android.keyguard.KeyguardSimPinView |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 21 | xmlns:android="http://schemas.android.com/apk/res/android" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 22 | xmlns:androidprv="http://schemas.android.com/apk/res/com.android.keyguard" |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 23 | android:id="@+id/keyguard_sim_pin_view" |
| 24 | android:orientation="vertical" |
| 25 | android:layout_width="match_parent" |
| 26 | android:layout_height="match_parent" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 27 | androidprv:layout_maxWidth="@dimen/keyguard_security_width" |
| 28 | androidprv:layout_maxHeight="@dimen/keyguard_security_height" |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 29 | android:gravity="center_horizontal"> |
| 30 | |
Daniel Sandler | 53149e6 | 2012-11-01 22:00:07 -0400 | [diff] [blame] | 31 | <ImageView |
Jim Miller | 7dfc588 | 2012-11-05 22:45:35 -0800 | [diff] [blame] | 32 | android:layout_width="match_parent" |
Daniel Sandler | 53149e6 | 2012-11-01 22:00:07 -0400 | [diff] [blame] | 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 |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 41 | android:id="@+id/keyguard_bouncer_frame" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 42 | android:background="@drawable/kg_bouncer_bg_white" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 43 | android:layout_width="match_parent" |
| 44 | android:layout_height="0dp" |
| 45 | android:orientation="vertical" |
| 46 | android:layout_weight="1" |
Jim Miller | 05163aa | 2012-11-14 18:35:02 -0800 | [diff] [blame] | 47 | android:layoutDirection="ltr" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 48 | > |
| 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 61 | android:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 62 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 72 | android:src="@drawable/ic_input_delete" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 73 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 93 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 94 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 102 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 103 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 111 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 112 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 127 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 128 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 136 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 137 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 145 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 146 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 161 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 162 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 170 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 171 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 179 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 180 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 200 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 201 | 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 Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 220 | </LinearLayout> |
| 221 | |
Jim Miller | 9e0a250 | 2012-11-07 21:23:32 -0800 | [diff] [blame] | 222 | <include layout="@layout/keyguard_eca" |
Daniel Sandler | 53149e6 | 2012-11-01 22:00:07 -0400 | [diff] [blame] | 223 | 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 Miller | 3af630c | 2012-09-26 14:29:18 -0700 | [diff] [blame] | 229 | |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 230 | </com.android.keyguard.KeyguardSimPinView> |