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 20 <com.android.keyguard.KeyguardPINView 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_pin_view" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 androidprv:layout_maxWidth="@dimen/keyguard_security_width" 27 androidprv:layout_maxHeight="@dimen/keyguard_security_height" 28 android:orientation="vertical" 29 android:contentDescription="@string/keyguard_accessibility_pin_unlock" 30 > 31 <include layout="@layout/keyguard_message_area" 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 /> 35 <LinearLayout 36 android:id="@+id/keyguard_bouncer_frame" 37 android:background="@drawable/kg_bouncer_bg_white" 38 android:layout_width="match_parent" 39 android:layout_height="0dp" 40 android:orientation="vertical" 41 android:layout_weight="1" 42 android:layoutDirection="ltr" 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" 56 android:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left" 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" 67 android:src="@drawable/ic_input_delete" 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 > 88 <view class="com.android.keyguard.NumPadKey" 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 /> 97 <view class="com.android.keyguard.NumPadKey" 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 /> 106 <view class="com.android.keyguard.NumPadKey" 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 > 122 <view class="com.android.keyguard.NumPadKey" 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 /> 131 <view class="com.android.keyguard.NumPadKey" 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 /> 140 <view class="com.android.keyguard.NumPadKey" 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 > 156 <view class="com.android.keyguard.NumPadKey" 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 /> 165 <view class="com.android.keyguard.NumPadKey" 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 /> 174 <view class="com.android.keyguard.NumPadKey" 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 /> 195 <view class="com.android.keyguard.NumPadKey" 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> 215 </LinearLayout> 216 <include layout="@layout/keyguard_eca" 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 224 </com.android.keyguard.KeyguardPINView> 225