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