Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 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. --> |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 20 | <com.android.keyguard.KeyguardSimPinView |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 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" |
Jinsong Mu | dc6efdc | 2014-12-03 18:13:15 -0800 | [diff] [blame] | 29 | android:gravity="center_horizontal"> |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 30 | |
Daniel Sandler | 53149e6 | 2012-11-01 22:00:07 -0400 | [diff] [blame] | 31 | <ImageView |
Jorim Jaggi | d05064b | 2014-11-20 21:35:33 +0100 | [diff] [blame] | 32 | android:id="@+id/keyguard_sim" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 33 | android:layout_width="match_parent" |
| 34 | android:layout_height="wrap_content" |
Lucas Dupin | 0e992fb | 2017-11-06 15:13:13 -0800 | [diff] [blame] | 35 | android:tint="@color/background_protected" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 36 | android:src="@drawable/ic_lockscreen_sim"/> |
Daniel Sandler | 53149e6 | 2012-11-01 22:00: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 | 53149e6 | 2012-11-01 22:00: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" |
qingxi | 3d76874 | 2017-04-12 11:07:11 -0700 | [diff] [blame] | 52 | android:layout_width="wrap_content" |
| 53 | android:layout_height="wrap_content" |
| 54 | android:layout_marginTop="@dimen/eca_overlap" /> |
| 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/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" |
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_pin_area" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 73 | /> |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 74 | <View |
| 75 | android:id="@+id/divider" |
| 76 | android:layout_width="match_parent" |
| 77 | android:layout_height="1dp" |
| 78 | android:layout_alignParentBottom="true" |
Lucas Dupin | 987f193 | 2017-05-13 21:02:52 -0700 | [diff] [blame] | 79 | android:background="@drawable/pin_divider" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 80 | /> |
| 81 | </RelativeLayout> |
| 82 | <LinearLayout |
| 83 | android:layout_width="match_parent" |
| 84 | android:layout_height="0dp" |
| 85 | android:layout_weight="1" |
| 86 | android:orientation="horizontal" |
| 87 | > |
| 88 | <com.android.keyguard.NumPadKey |
| 89 | android:id="@+id/key1" |
| 90 | android:layout_width="0px" |
| 91 | android:layout_height="match_parent" |
| 92 | android:layout_weight="1" |
| 93 | androidprv:textView="@+id/simPinEntry" |
| 94 | androidprv:digit="1" |
| 95 | /> |
| 96 | <com.android.keyguard.NumPadKey |
| 97 | android:id="@+id/key2" |
| 98 | android:layout_width="0px" |
| 99 | android:layout_height="match_parent" |
| 100 | android:layout_weight="1" |
| 101 | androidprv:textView="@+id/simPinEntry" |
| 102 | androidprv:digit="2" |
| 103 | /> |
| 104 | <com.android.keyguard.NumPadKey |
| 105 | android:id="@+id/key3" |
| 106 | android:layout_width="0px" |
| 107 | android:layout_height="match_parent" |
| 108 | android:layout_weight="1" |
| 109 | androidprv:textView="@+id/simPinEntry" |
| 110 | androidprv:digit="3" |
| 111 | /> |
| 112 | </LinearLayout> |
| 113 | <LinearLayout |
| 114 | android:layout_width="match_parent" |
| 115 | android:layout_height="0dp" |
| 116 | android:layout_weight="1" |
| 117 | android:orientation="horizontal" |
| 118 | > |
| 119 | <com.android.keyguard.NumPadKey |
| 120 | android:id="@+id/key4" |
| 121 | android:layout_width="0px" |
| 122 | android:layout_height="match_parent" |
| 123 | android:layout_weight="1" |
| 124 | androidprv:textView="@+id/simPinEntry" |
| 125 | androidprv:digit="4" |
| 126 | /> |
| 127 | <com.android.keyguard.NumPadKey |
| 128 | android:id="@+id/key5" |
| 129 | android:layout_width="0px" |
| 130 | android:layout_height="match_parent" |
| 131 | android:layout_weight="1" |
| 132 | androidprv:textView="@+id/simPinEntry" |
| 133 | androidprv:digit="5" |
| 134 | /> |
| 135 | <com.android.keyguard.NumPadKey |
| 136 | android:id="@+id/key6" |
| 137 | android:layout_width="0px" |
| 138 | android:layout_height="match_parent" |
| 139 | android:layout_weight="1" |
| 140 | androidprv:textView="@+id/simPinEntry" |
| 141 | androidprv:digit="6" |
| 142 | /> |
| 143 | </LinearLayout> |
| 144 | <LinearLayout |
| 145 | android:layout_width="match_parent" |
| 146 | android:layout_height="0dp" |
| 147 | android:orientation="horizontal" |
| 148 | android:layout_weight="1" |
| 149 | > |
| 150 | <com.android.keyguard.NumPadKey |
| 151 | android:id="@+id/key7" |
| 152 | android:layout_width="0px" |
| 153 | android:layout_height="match_parent" |
| 154 | android:layout_weight="1" |
| 155 | androidprv:textView="@+id/simPinEntry" |
| 156 | androidprv:digit="7" |
| 157 | /> |
| 158 | <com.android.keyguard.NumPadKey |
| 159 | android:id="@+id/key8" |
| 160 | android:layout_width="0px" |
| 161 | android:layout_height="match_parent" |
| 162 | android:layout_weight="1" |
| 163 | androidprv:textView="@+id/simPinEntry" |
| 164 | androidprv:digit="8" |
| 165 | /> |
| 166 | <com.android.keyguard.NumPadKey |
| 167 | android:id="@+id/key9" |
| 168 | android:layout_width="0px" |
| 169 | android:layout_height="match_parent" |
| 170 | android:layout_weight="1" |
| 171 | androidprv:textView="@+id/simPinEntry" |
| 172 | androidprv:digit="9" |
| 173 | /> |
| 174 | </LinearLayout> |
| 175 | <LinearLayout |
| 176 | android:layout_width="match_parent" |
| 177 | android:layout_height="0dp" |
| 178 | android:layout_weight="1" |
| 179 | android:orientation="horizontal" |
| 180 | > |
Lucas Dupin | e3c9ccc | 2018-10-23 14:44:04 -0700 | [diff] [blame] | 181 | <com.android.keyguard.AlphaOptimizedImageButton |
| 182 | android:id="@+id/delete_button" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 183 | android:layout_width="0px" |
| 184 | android:layout_height="match_parent" |
| 185 | android:layout_weight="1" |
Lucas Dupin | e3c9ccc | 2018-10-23 14:44:04 -0700 | [diff] [blame] | 186 | android:background="@drawable/ripple_drawable_pin" |
| 187 | android:contentDescription="@string/keyboardview_keycode_delete" |
| 188 | style="@style/Keyguard.ImageButton.NumPadDelete" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 189 | /> |
| 190 | <com.android.keyguard.NumPadKey |
| 191 | android:id="@+id/key0" |
| 192 | android:layout_width="0px" |
| 193 | android:layout_height="match_parent" |
| 194 | android:layout_weight="1" |
| 195 | androidprv:textView="@+id/simPinEntry" |
| 196 | androidprv:digit="0" |
| 197 | /> |
Lucas Dupin | e3c9ccc | 2018-10-23 14:44:04 -0700 | [diff] [blame] | 198 | <com.android.keyguard.AlphaOptimizedImageButton |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 199 | android:id="@+id/key_enter" |
| 200 | android:layout_width="0px" |
| 201 | android:layout_height="match_parent" |
| 202 | android:layout_weight="1" |
Lucas Dupin | 987f193 | 2017-05-13 21:02:52 -0700 | [diff] [blame] | 203 | style="@style/Keyguard.ImageButton.NumPadEnter" |
Lucas Dupin | e3c9ccc | 2018-10-23 14:44:04 -0700 | [diff] [blame] | 204 | android:background="@drawable/ripple_drawable_pin" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 205 | android:contentDescription="@string/keyboardview_keycode_enter" |
| 206 | /> |
| 207 | </LinearLayout> |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 208 | </LinearLayout> |
| 209 | |
Jim Miller | 9e0a250 | 2012-11-07 21:23:32 -0800 | [diff] [blame] | 210 | <include layout="@layout/keyguard_eca" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 211 | android:id="@+id/keyguard_selector_fade_container" |
| 212 | android:layout_width="match_parent" |
| 213 | android:layout_height="wrap_content" |
| 214 | android:orientation="vertical" |
| 215 | android:layout_gravity="bottom|center_horizontal" |
| 216 | android:gravity="center_horizontal"/> |
Jim Miller | 3af630c | 2012-09-26 14:29:18 -0700 | [diff] [blame] | 217 | |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 218 | </com.android.keyguard.KeyguardSimPinView> |