Daniel Sandler | 69bdee7 | 2012-10-23 16:45:50 -0400 | [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 | |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 20 | <com.android.keyguard.KeyguardPINView |
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_pin_view" |
Jim Miller | 0b72824 | 2012-10-28 19:42:30 -0700 | [diff] [blame] | 24 | android:layout_width="match_parent" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 25 | android:layout_height="match_parent" |
| 26 | androidprv:layout_maxWidth="@dimen/keyguard_security_width" |
| 27 | androidprv:layout_maxHeight="@dimen/keyguard_security_max_height" |
| 28 | android:orientation="vertical" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 29 | > |
| 30 | <include layout="@layout/keyguard_message_area" |
| 31 | android:layout_width="match_parent" |
| 32 | android:layout_height="wrap_content" |
| 33 | /> |
Daniel Sandler | 69bdee7 | 2012-10-23 16:45:50 -0400 | [diff] [blame] | 34 | <LinearLayout |
Jorim Jaggi | 6b88cdf | 2014-12-22 20:56:50 +0100 | [diff] [blame] | 35 | android:id="@+id/container" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 36 | android:layout_width="match_parent" |
| 37 | android:layout_height="0dp" |
| 38 | android:orientation="vertical" |
| 39 | android:layout_weight="1" |
| 40 | android:layoutDirection="ltr" |
| 41 | > |
Jorim Jaggi | e19b1ac | 2014-09-11 18:17:56 +0200 | [diff] [blame] | 42 | <com.android.keyguard.AlphaOptimizedRelativeLayout |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 43 | android:id="@+id/row0" |
| 44 | android:layout_width="match_parent" |
| 45 | android:layout_height="0dp" |
| 46 | android:layout_weight="1" |
| 47 | android:paddingBottom="16dp" |
| 48 | > |
| 49 | <com.android.keyguard.PasswordTextView |
| 50 | android:id="@+id/pinEntry" |
| 51 | android:layout_width="@dimen/keyguard_security_width" |
| 52 | android:layout_height="match_parent" |
| 53 | android:gravity="center" |
| 54 | android:layout_centerHorizontal="true" |
| 55 | android:layout_marginRight="72dp" |
Andrew Sapperstein | fec8092 | 2017-06-13 18:36:28 -0700 | [diff] [blame] | 56 | androidprv:scaledTextSize="@integer/scaled_password_text_size" |
Lucas Dupin | a360e1e7 | 2017-07-17 17:25:20 -0700 | [diff] [blame] | 57 | android:textColor="?attr/wallpaperTextColor" |
Jinsong Mu | dc6efdc | 2014-12-03 18:13:15 -0800 | [diff] [blame] | 58 | android:contentDescription="@string/keyguard_accessibility_pin_area" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 59 | /> |
| 60 | <ImageButton |
| 61 | android:id="@+id/delete_button" |
| 62 | android:layout_width="wrap_content" |
| 63 | android:layout_height="match_parent" |
| 64 | android:gravity="center_vertical" |
Lucas Dupin | 6a52608 | 2017-08-02 15:26:14 -0700 | [diff] [blame] | 65 | android:src="@drawable/ic_backspace_black_24dp" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 66 | android:clickable="true" |
| 67 | android:paddingTop="8dip" |
| 68 | android:paddingBottom="8dip" |
Lucas Dupin | 987f193 | 2017-05-13 21:02:52 -0700 | [diff] [blame] | 69 | android:paddingRight="0dp" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 70 | android:paddingLeft="24dp" |
| 71 | android:background="@drawable/ripple_drawable" |
| 72 | android:contentDescription="@string/keyboardview_keycode_delete" |
| 73 | android:layout_alignEnd="@+id/pinEntry" |
| 74 | android:layout_alignParentRight="true" |
Lucas Dupin | 987f193 | 2017-05-13 21:02:52 -0700 | [diff] [blame] | 75 | android:tint="@color/pin_delete_color" |
Lucas Dupin | 6a52608 | 2017-08-02 15:26:14 -0700 | [diff] [blame] | 76 | android:tintMode="src_in" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 77 | /> |
Jorim Jaggi | 15a77f7 | 2014-05-28 16:20:03 +0200 | [diff] [blame] | 78 | <View |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 79 | android:id="@+id/divider" |
| 80 | android:layout_width="match_parent" |
| 81 | android:layout_height="1dp" |
| 82 | android:layout_alignParentBottom="true" |
Lucas Dupin | 987f193 | 2017-05-13 21:02:52 -0700 | [diff] [blame] | 83 | android:background="@drawable/pin_divider" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 84 | /> |
Jorim Jaggi | e19b1ac | 2014-09-11 18:17:56 +0200 | [diff] [blame] | 85 | </com.android.keyguard.AlphaOptimizedRelativeLayout> |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 86 | <LinearLayout |
| 87 | android:id="@+id/row1" |
| 88 | android:layout_width="match_parent" |
| 89 | android:layout_height="0dp" |
| 90 | android:layout_weight="1" |
| 91 | android:orientation="horizontal" |
| 92 | > |
| 93 | <com.android.keyguard.NumPadKey |
| 94 | android:id="@+id/key1" |
| 95 | android:layout_width="0px" |
| 96 | android:layout_height="match_parent" |
| 97 | android:layout_weight="1" |
| 98 | androidprv:textView="@+id/pinEntry" |
| 99 | androidprv:digit="1" |
| 100 | /> |
| 101 | <com.android.keyguard.NumPadKey |
| 102 | android:id="@+id/key2" |
| 103 | android:layout_width="0px" |
| 104 | android:layout_height="match_parent" |
| 105 | android:layout_weight="1" |
| 106 | androidprv:textView="@+id/pinEntry" |
| 107 | androidprv:digit="2" |
| 108 | /> |
| 109 | <com.android.keyguard.NumPadKey |
| 110 | android:id="@+id/key3" |
| 111 | android:layout_width="0px" |
| 112 | android:layout_height="match_parent" |
| 113 | android:layout_weight="1" |
| 114 | androidprv:textView="@+id/pinEntry" |
| 115 | androidprv:digit="3" |
| 116 | /> |
| 117 | </LinearLayout> |
| 118 | <LinearLayout |
| 119 | android:id="@+id/row2" |
| 120 | android:layout_width="match_parent" |
| 121 | android:layout_height="0dp" |
| 122 | android:layout_weight="1" |
| 123 | android:orientation="horizontal" |
| 124 | > |
| 125 | <com.android.keyguard.NumPadKey |
| 126 | android:id="@+id/key4" |
| 127 | android:layout_width="0px" |
| 128 | android:layout_height="match_parent" |
| 129 | android:layout_weight="1" |
| 130 | androidprv:textView="@+id/pinEntry" |
| 131 | androidprv:digit="4" |
| 132 | /> |
| 133 | <com.android.keyguard.NumPadKey |
| 134 | android:id="@+id/key5" |
| 135 | android:layout_width="0px" |
| 136 | android:layout_height="match_parent" |
| 137 | android:layout_weight="1" |
| 138 | androidprv:textView="@+id/pinEntry" |
| 139 | androidprv:digit="5" |
| 140 | /> |
| 141 | <com.android.keyguard.NumPadKey |
| 142 | android:id="@+id/key6" |
| 143 | android:layout_width="0px" |
| 144 | android:layout_height="match_parent" |
| 145 | android:layout_weight="1" |
| 146 | androidprv:textView="@+id/pinEntry" |
| 147 | androidprv:digit="6" |
| 148 | /> |
| 149 | </LinearLayout> |
| 150 | <LinearLayout |
| 151 | android:id="@+id/row3" |
| 152 | android:layout_width="match_parent" |
| 153 | android:layout_height="0dp" |
| 154 | android:orientation="horizontal" |
| 155 | android:layout_weight="1" |
| 156 | > |
| 157 | <com.android.keyguard.NumPadKey |
| 158 | android:id="@+id/key7" |
| 159 | android:layout_width="0px" |
| 160 | android:layout_height="match_parent" |
| 161 | android:layout_weight="1" |
| 162 | androidprv:textView="@+id/pinEntry" |
| 163 | androidprv:digit="7" |
| 164 | /> |
| 165 | <com.android.keyguard.NumPadKey |
| 166 | android:id="@+id/key8" |
| 167 | android:layout_width="0px" |
| 168 | android:layout_height="match_parent" |
| 169 | android:layout_weight="1" |
| 170 | androidprv:textView="@+id/pinEntry" |
| 171 | androidprv:digit="8" |
| 172 | /> |
| 173 | <com.android.keyguard.NumPadKey |
| 174 | android:id="@+id/key9" |
| 175 | android:layout_width="0px" |
| 176 | android:layout_height="match_parent" |
| 177 | android:layout_weight="1" |
| 178 | androidprv:textView="@+id/pinEntry" |
| 179 | androidprv:digit="9" |
| 180 | /> |
| 181 | </LinearLayout> |
| 182 | <LinearLayout |
| 183 | android:id="@+id/row4" |
| 184 | android:layout_width="match_parent" |
| 185 | android:layout_height="0dp" |
| 186 | android:layout_weight="1" |
| 187 | android:orientation="horizontal" |
| 188 | > |
| 189 | <Space |
| 190 | android:layout_width="0px" |
| 191 | android:layout_height="match_parent" |
| 192 | android:layout_weight="1" |
| 193 | /> |
| 194 | <com.android.keyguard.NumPadKey |
| 195 | android:id="@+id/key0" |
| 196 | android:layout_width="0px" |
| 197 | android:layout_height="match_parent" |
| 198 | android:layout_weight="1" |
| 199 | androidprv:textView="@+id/pinEntry" |
| 200 | androidprv:digit="0" |
| 201 | /> |
Jorim Jaggi | e19b1ac | 2014-09-11 18:17:56 +0200 | [diff] [blame] | 202 | <com.android.keyguard.AlphaOptimizedImageButton |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 203 | android:id="@+id/key_enter" |
| 204 | android:layout_width="0px" |
| 205 | android:layout_height="match_parent" |
| 206 | android:layout_weight="1" |
| 207 | android:paddingBottom="11sp" |
Lucas Dupin | 6a52608 | 2017-08-02 15:26:14 -0700 | [diff] [blame] | 208 | android:src="@drawable/ic_done_black_24dp" |
Lucas Dupin | 987f193 | 2017-05-13 21:02:52 -0700 | [diff] [blame] | 209 | style="@style/Keyguard.ImageButton.NumPadEnter" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 210 | android:background="@drawable/ripple_drawable" |
| 211 | android:contentDescription="@string/keyboardview_keycode_enter" |
| 212 | /> |
| 213 | </LinearLayout> |
Daniel Sandler | 69bdee7 | 2012-10-23 16:45:50 -0400 | [diff] [blame] | 214 | </LinearLayout> |
Jim Miller | 9e0a250 | 2012-11-07 21:23:32 -0800 | [diff] [blame] | 215 | <include layout="@layout/keyguard_eca" |
Selim Cinek | 4e8b9ed | 2014-06-20 16:37:04 -0700 | [diff] [blame] | 216 | android:id="@+id/keyguard_selector_fade_container" |
| 217 | android:layout_width="match_parent" |
| 218 | android:layout_height="wrap_content" |
| 219 | android:orientation="vertical" |
| 220 | android:layout_gravity="bottom|center_horizontal" |
| 221 | android:gravity="center_horizontal"/> |
Daniel Sandler | 51d39f2 | 2012-10-25 01:17:22 -0400 | [diff] [blame] | 222 | |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 223 | </com.android.keyguard.KeyguardPINView> |