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