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-auto" 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_max_height" 28 android:orientation="vertical" 29 > 30 <include layout="@layout/keyguard_message_area" 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 /> 34 <LinearLayout 35 android:id="@+id/container" 36 android:layout_width="match_parent" 37 android:layout_height="0dp" 38 android:orientation="vertical" 39 android:layout_weight="1" 40 android:layoutDirection="ltr" 41 > 42 <com.android.keyguard.AlphaOptimizedRelativeLayout 43 android:id="@+id/row0" 44 android:layout_width="match_parent" 45 android:layout_height="0dp" 46 android:layout_weight="1" 47 android:paddingBottom="16dp" 48 > 49 <com.android.keyguard.PasswordTextView 50 android:id="@+id/pinEntry" 51 android:layout_width="@dimen/keyguard_security_width" 52 android:layout_height="match_parent" 53 android:gravity="center" 54 android:layout_centerHorizontal="true" 55 android:layout_marginRight="72dp" 56 androidprv:scaledTextSize="28" 57 android:contentDescription="@string/keyguard_accessibility_pin_area" 58 /> 59 <ImageButton 60 android:id="@+id/delete_button" 61 android:layout_width="wrap_content" 62 android:layout_height="match_parent" 63 android:gravity="center_vertical" 64 android:src="@drawable/ic_backspace_24dp" 65 android:clickable="true" 66 android:paddingTop="8dip" 67 android:paddingBottom="8dip" 68 android:paddingRight="8dp" 69 android:paddingLeft="24dp" 70 android:background="@drawable/ripple_drawable" 71 android:contentDescription="@string/keyboardview_keycode_delete" 72 android:layout_alignEnd="@+id/pinEntry" 73 android:layout_alignParentRight="true" 74 /> 75 <View 76 android:id="@+id/divider" 77 android:layout_width="match_parent" 78 android:layout_height="1dp" 79 android:layout_alignParentBottom="true" 80 android:background="#28FFFFFF" 81 /> 82 </com.android.keyguard.AlphaOptimizedRelativeLayout> 83 <LinearLayout 84 android:id="@+id/row1" 85 android:layout_width="match_parent" 86 android:layout_height="0dp" 87 android:layout_weight="1" 88 android:orientation="horizontal" 89 > 90 <com.android.keyguard.NumPadKey 91 android:id="@+id/key1" 92 android:layout_width="0px" 93 android:layout_height="match_parent" 94 android:layout_weight="1" 95 androidprv:textView="@+id/pinEntry" 96 androidprv:digit="1" 97 /> 98 <com.android.keyguard.NumPadKey 99 android:id="@+id/key2" 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 <com.android.keyguard.NumPadKey 107 android:id="@+id/key3" 108 android:layout_width="0px" 109 android:layout_height="match_parent" 110 android:layout_weight="1" 111 androidprv:textView="@+id/pinEntry" 112 androidprv:digit="3" 113 /> 114 </LinearLayout> 115 <LinearLayout 116 android:id="@+id/row2" 117 android:layout_width="match_parent" 118 android:layout_height="0dp" 119 android:layout_weight="1" 120 android:orientation="horizontal" 121 > 122 <com.android.keyguard.NumPadKey 123 android:id="@+id/key4" 124 android:layout_width="0px" 125 android:layout_height="match_parent" 126 android:layout_weight="1" 127 androidprv:textView="@+id/pinEntry" 128 androidprv:digit="4" 129 /> 130 <com.android.keyguard.NumPadKey 131 android:id="@+id/key5" 132 android:layout_width="0px" 133 android:layout_height="match_parent" 134 android:layout_weight="1" 135 androidprv:textView="@+id/pinEntry" 136 androidprv:digit="5" 137 /> 138 <com.android.keyguard.NumPadKey 139 android:id="@+id/key6" 140 android:layout_width="0px" 141 android:layout_height="match_parent" 142 android:layout_weight="1" 143 androidprv:textView="@+id/pinEntry" 144 androidprv:digit="6" 145 /> 146 </LinearLayout> 147 <LinearLayout 148 android:id="@+id/row3" 149 android:layout_width="match_parent" 150 android:layout_height="0dp" 151 android:orientation="horizontal" 152 android:layout_weight="1" 153 > 154 <com.android.keyguard.NumPadKey 155 android:id="@+id/key7" 156 android:layout_width="0px" 157 android:layout_height="match_parent" 158 android:layout_weight="1" 159 androidprv:textView="@+id/pinEntry" 160 androidprv:digit="7" 161 /> 162 <com.android.keyguard.NumPadKey 163 android:id="@+id/key8" 164 android:layout_width="0px" 165 android:layout_height="match_parent" 166 android:layout_weight="1" 167 androidprv:textView="@+id/pinEntry" 168 androidprv:digit="8" 169 /> 170 <com.android.keyguard.NumPadKey 171 android:id="@+id/key9" 172 android:layout_width="0px" 173 android:layout_height="match_parent" 174 android:layout_weight="1" 175 androidprv:textView="@+id/pinEntry" 176 androidprv:digit="9" 177 /> 178 </LinearLayout> 179 <LinearLayout 180 android:id="@+id/row4" 181 android:layout_width="match_parent" 182 android:layout_height="0dp" 183 android:layout_weight="1" 184 android:orientation="horizontal" 185 > 186 <Space 187 android:layout_width="0px" 188 android:layout_height="match_parent" 189 android:layout_weight="1" 190 /> 191 <com.android.keyguard.NumPadKey 192 android:id="@+id/key0" 193 android:layout_width="0px" 194 android:layout_height="match_parent" 195 android:layout_weight="1" 196 androidprv:textView="@+id/pinEntry" 197 androidprv:digit="0" 198 /> 199 <com.android.keyguard.AlphaOptimizedImageButton 200 android:id="@+id/key_enter" 201 android:layout_width="0px" 202 android:layout_height="match_parent" 203 android:layout_weight="1" 204 android:paddingBottom="11sp" 205 android:src="@drawable/ic_done_wht" 206 android:background="@drawable/ripple_drawable" 207 android:contentDescription="@string/keyboardview_keycode_enter" 208 /> 209 </LinearLayout> 210 </LinearLayout> 211 <include layout="@layout/keyguard_eca" 212 android:id="@+id/keyguard_selector_fade_container" 213 android:layout_width="match_parent" 214 android:layout_height="wrap_content" 215 android:orientation="vertical" 216 android:layout_gravity="bottom|center_horizontal" 217 android:gravity="center_horizontal"/> 218 219 </com.android.keyguard.KeyguardPINView> 220