Daniel Sandler | 69bdee7 | 2012-10-23 16:45:50 -0400 | [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 | |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 20 | <com.android.keyguard.KeyguardPINView |
Daniel Sandler | 69bdee7 | 2012-10-23 16:45:50 -0400 | [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" |
Daniel Sandler | 69bdee7 | 2012-10-23 16:45:50 -0400 | [diff] [blame] | 23 | android:id="@+id/keyguard_pin_view" |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 24 | android:layout_width="match_parent" |
| 25 | android:layout_height="match_parent" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 26 | androidprv:layout_maxWidth="@dimen/keyguard_security_width" |
| 27 | androidprv:layout_maxHeight="@dimen/keyguard_security_height" |
Daniel Sandler | 69bdee7 | 2012-10-23 16:45:50 -0400 | [diff] [blame] | 28 | android:orientation="vertical" |
Svetoslav Ganov | c4842c1 | 2012-10-31 14:33:32 -0700 | [diff] [blame] | 29 | android:contentDescription="@string/keyguard_accessibility_pin_unlock" |
Daniel Sandler | 69bdee7 | 2012-10-23 16:45:50 -0400 | [diff] [blame] | 30 | > |
Jim Miller | 0b72824 | 2012-10-28 19:42:30 -0700 | [diff] [blame] | 31 | <include layout="@layout/keyguard_message_area" |
| 32 | android:layout_width="match_parent" |
| 33 | android:layout_height="wrap_content" |
| 34 | /> |
Daniel Sandler | 69bdee7 | 2012-10-23 16:45:50 -0400 | [diff] [blame] | 35 | <LinearLayout |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 36 | android:id="@+id/keyguard_bouncer_frame" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 37 | android:background="@drawable/kg_bouncer_bg_white" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 38 | android:layout_width="match_parent" |
| 39 | android:layout_height="0dp" |
| 40 | android:orientation="vertical" |
| 41 | android:layout_weight="1" |
Jim Miller | 05163aa | 2012-11-14 18:35:02 -0800 | [diff] [blame] | 42 | android:layoutDirection="ltr" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 43 | > |
| 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 56 | android:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 57 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 67 | android:src="@drawable/ic_input_delete" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 68 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 88 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 89 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 97 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 98 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 106 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 107 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 122 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 123 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 131 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 132 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 140 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 141 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 156 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 157 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 165 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 166 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 174 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 175 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 195 | <view class="com.android.keyguard.NumPadKey" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 196 | 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 Sandler | 69bdee7 | 2012-10-23 16:45:50 -0400 | [diff] [blame] | 215 | </LinearLayout> |
Jim Miller | 9e0a250 | 2012-11-07 21:23:32 -0800 | [diff] [blame] | 216 | <include layout="@layout/keyguard_eca" |
Daniel Sandler | 51d39f2 | 2012-10-25 01:17:22 -0400 | [diff] [blame] | 217 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 224 | </com.android.keyguard.KeyguardPINView> |