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.keyguard.KeyguardSimPinView 21 xmlns:android="http://schemas.android.com/apk/res/android" 22 xmlns:androidprv="http://schemas.android.com/apk/res/com.android.keyguard" 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 androidprv:layout_maxWidth="@dimen/keyguard_security_width" 28 androidprv: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="@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 android:layoutDirection="ltr" 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" 61 android:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left" 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" 72 android:src="@drawable/ic_input_delete" 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 > 93 <view class="com.android.keyguard.NumPadKey" 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 /> 102 <view class="com.android.keyguard.NumPadKey" 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 /> 111 <view class="com.android.keyguard.NumPadKey" 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 > 127 <view class="com.android.keyguard.NumPadKey" 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 /> 136 <view class="com.android.keyguard.NumPadKey" 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 /> 145 <view class="com.android.keyguard.NumPadKey" 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 > 161 <view class="com.android.keyguard.NumPadKey" 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 /> 170 <view class="com.android.keyguard.NumPadKey" 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 /> 179 <view class="com.android.keyguard.NumPadKey" 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 /> 200 <view class="com.android.keyguard.NumPadKey" 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> 220 </LinearLayout> 221 222 <include layout="@layout/keyguard_eca" 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" /> 229 230 </com.android.keyguard.KeyguardSimPinView> 231