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