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