Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright (C) 2019 The Android Open Source Project |
| 3 | ~ |
| 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | ~ you may not use this file except in compliance with the License. |
| 6 | ~ You may obtain a copy of the License at |
| 7 | ~ |
| 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | ~ |
| 10 | ~ Unless required by applicable law or agreed to in writing, software |
| 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | ~ See the License for the specific language governing permissions and |
| 14 | ~ limitations under the License. |
| 15 | --> |
| 16 | |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame^] | 17 | <com.android.systemui.biometrics.AuthCredentialPasswordView |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
| 21 | android:orientation="vertical" |
| 22 | android:gravity="center_horizontal" |
| 23 | android:elevation="@dimen/biometric_dialog_elevation"> |
| 24 | |
| 25 | <Space |
| 26 | android:layout_width="0dp" |
| 27 | android:layout_height="0dp" |
| 28 | android:layout_weight="1"/> |
| 29 | |
| 30 | <ImageView |
| 31 | android:layout_width="32dp" |
| 32 | android:layout_height="32dp" |
| 33 | android:background="@drawable/auth_dialog_lock"/> |
| 34 | |
| 35 | <TextView |
| 36 | android:id="@+id/title" |
| 37 | android:fontFamily="@*android:string/config_headlineFontFamilyMedium" |
| 38 | android:layout_width="match_parent" |
| 39 | android:layout_height="wrap_content" |
| 40 | android:layout_marginHorizontal="24dp" |
| 41 | android:layout_marginTop="12dp" |
| 42 | android:textSize="20sp" |
| 43 | android:gravity="center" |
| 44 | android:textColor="?android:attr/textColorPrimary"/> |
| 45 | |
| 46 | <TextView |
| 47 | android:id="@+id/subtitle" |
| 48 | android:layout_width="match_parent" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:layout_marginHorizontal="24dp" |
| 51 | android:layout_marginTop="8dp" |
| 52 | android:textSize="16sp" |
| 53 | android:gravity="center" |
| 54 | android:textColor="?android:attr/textColorPrimary"/> |
| 55 | |
| 56 | <TextView |
| 57 | android:id="@+id/description" |
| 58 | android:layout_width="match_parent" |
| 59 | android:layout_height="wrap_content" |
| 60 | android:layout_marginHorizontal="24dp" |
| 61 | android:layout_marginTop="8dp" |
| 62 | android:gravity="center" |
| 63 | android:textSize="16sp" |
| 64 | android:textColor="?android:attr/textColorPrimary"/> |
| 65 | |
| 66 | <Space |
| 67 | android:layout_width="0dp" |
| 68 | android:layout_height="0dp" |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame^] | 69 | android:layout_weight="1"/> |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 70 | |
| 71 | <TextView |
| 72 | android:id="@+id/error" |
| 73 | android:layout_width="match_parent" |
| 74 | android:layout_height="wrap_content" |
| 75 | android:layout_marginHorizontal="24dp" |
| 76 | android:textSize="16sp" |
| 77 | android:gravity="center" |
| 78 | android:textColor="?android:attr/colorError"/> |
| 79 | |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame^] | 80 | <EditText |
| 81 | android:id="@+id/lockPassword" |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 82 | android:layout_marginBottom="20dp" |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame^] | 83 | android:layout_marginLeft="100dp" |
| 84 | android:layout_marginRight="100dp" |
| 85 | android:layout_width="208dp" |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 86 | android:layout_height="wrap_content" |
| 87 | android:layout_gravity="center" |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame^] | 88 | android:gravity="center" |
| 89 | android:inputType="textPassword" |
| 90 | android:maxLength="500" |
| 91 | android:textSize="16sp" |
| 92 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 93 | android:imeOptions="flagForceAscii" |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 94 | style="@style/LockPatternStyleBiometricPrompt"/> |
| 95 | |
| 96 | <Space |
| 97 | android:layout_width="0dp" |
| 98 | android:layout_height="0dp" |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame^] | 99 | android:layout_weight="5"/> |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 100 | |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame^] | 101 | </com.android.systemui.biometrics.AuthCredentialPasswordView> |