Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 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 | --> |
Jim Miller | 3efe106 | 2012-09-28 16:59:31 -0700 | [diff] [blame] | 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. --> |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 21 | <com.android.keyguard.KeyguardSimPukView |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 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"> |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 31 | |
Daniel Sandler | 23d7a6e | 2012-11-02 00:21:07 -0400 | [diff] [blame] | 32 | <ImageView |
Jorim Jaggi | d05064b | 2014-11-20 21:35:33 +0100 | [diff] [blame] | 33 | android:id="@+id/keyguard_sim" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 34 | android:layout_width="match_parent" |
| 35 | android:layout_height="wrap_content" |
| 36 | android:src="@drawable/ic_lockscreen_sim"/> |
Daniel Sandler | 23d7a6e | 2012-11-02 00:21:07 -0400 | [diff] [blame] | 37 | |
| 38 | <include layout="@layout/keyguard_message_area" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 39 | android:layout_width="match_parent" |
| 40 | android:layout_height="wrap_content" |
| 41 | /> |
Daniel Sandler | 23d7a6e | 2012-11-02 00:21:07 -0400 | [diff] [blame] | 42 | <LinearLayout |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 43 | android:layout_width="match_parent" |
| 44 | android:layout_height="0dp" |
| 45 | android:orientation="vertical" |
qingxi | 3d76874 | 2017-04-12 11:07:11 -0700 | [diff] [blame] | 46 | android:gravity="center" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 47 | android:layout_weight="1" |
| 48 | android:layoutDirection="ltr" |
| 49 | > |
qingxi | 3d76874 | 2017-04-12 11:07:11 -0700 | [diff] [blame] | 50 | <include layout="@layout/keyguard_esim_area" |
qingxi | 12f2de4 | 2017-05-24 15:33:13 -0700 | [diff] [blame] | 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" /> |
qingxi | 3d76874 | 2017-04-12 11:07:11 -0700 | [diff] [blame] | 55 | |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 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/pukEntry" |
| 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" |
Andrew Sapperstein | fec8092 | 2017-06-13 18:36:28 -0700 | [diff] [blame] | 70 | androidprv:scaledTextSize="@integer/scaled_password_text_size" |
Lucas Dupin | a360e1e7 | 2017-07-17 17:25:20 -0700 | [diff] [blame] | 71 | android:textColor="?attr/wallpaperTextColor" |
Jinsong Mu | dc6efdc | 2014-12-03 18:13:15 -0800 | [diff] [blame] | 72 | android:contentDescription="@string/keyguard_accessibility_sim_puk_area" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 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" |
Lucas Dupin | 6a52608 | 2017-08-02 15:26:14 -0700 | [diff] [blame] | 79 | android:src="@drawable/ic_backspace_black_24dp" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 80 | android:clickable="true" |
| 81 | android:paddingTop="8dip" |
| 82 | android:paddingBottom="8dip" |
Lucas Dupin | 987f193 | 2017-05-13 21:02:52 -0700 | [diff] [blame] | 83 | android:paddingRight="0dp" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 84 | android:paddingLeft="24dp" |
| 85 | android:background="@drawable/ripple_drawable" |
| 86 | android:contentDescription="@string/keyboardview_keycode_delete" |
| 87 | android:layout_alignEnd="@+id/pinEntry" |
| 88 | android:layout_alignParentRight="true" |
Lucas Dupin | 987f193 | 2017-05-13 21:02:52 -0700 | [diff] [blame] | 89 | android:tint="@color/pin_delete_color" |
Lucas Dupin | 6a52608 | 2017-08-02 15:26:14 -0700 | [diff] [blame] | 90 | android:tintMode="src_in" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 91 | /> |
| 92 | <View |
| 93 | android:id="@+id/divider" |
| 94 | android:layout_width="match_parent" |
| 95 | android:layout_height="1dp" |
| 96 | android:layout_alignParentBottom="true" |
Lucas Dupin | 987f193 | 2017-05-13 21:02:52 -0700 | [diff] [blame] | 97 | android:background="@drawable/pin_divider" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 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/pukEntry" |
| 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/pukEntry" |
| 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/pukEntry" |
| 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/pukEntry" |
| 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/pukEntry" |
| 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/pukEntry" |
| 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/pukEntry" |
| 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/pukEntry" |
| 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/pukEntry" |
| 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/pukEntry" |
| 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" |
Lucas Dupin | 6a52608 | 2017-08-02 15:26:14 -0700 | [diff] [blame] | 218 | android:src="@drawable/ic_done_black_24dp" |
Lucas Dupin | 987f193 | 2017-05-13 21:02:52 -0700 | [diff] [blame] | 219 | style="@style/Keyguard.ImageButton.NumPadEnter" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 220 | android:background="@drawable/ripple_drawable" |
| 221 | android:contentDescription="@string/keyboardview_keycode_enter" |
| 222 | /> |
| 223 | </LinearLayout> |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 224 | </LinearLayout> |
| 225 | |
Jim Miller | 9e0a250 | 2012-11-07 21:23:32 -0800 | [diff] [blame] | 226 | <include layout="@layout/keyguard_eca" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 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"/> |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 233 | </com.android.keyguard.KeyguardSimPukView> |