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