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