Kevin Chyn | 8cbb488 | 2019-09-19 16:49:02 -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 | |
| 17 | <com.android.systemui.biometrics.AuthCredentialView |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
| 21 | android:orientation="horizontal" |
| 22 | android:elevation="@dimen/biometric_dialog_elevation"> |
| 23 | |
| 24 | <LinearLayout |
| 25 | android:layout_width="0dp" |
| 26 | android:layout_height="match_parent" |
| 27 | android:layout_weight="1" |
| 28 | android:gravity="center" |
| 29 | android:orientation="vertical"> |
| 30 | |
| 31 | <Space |
| 32 | android:layout_width="0dp" |
| 33 | android:layout_height="0dp" |
| 34 | android:layout_weight="1"/> |
| 35 | |
| 36 | <ImageView |
| 37 | android:layout_width="32dp" |
| 38 | android:layout_height="32dp" |
| 39 | android:background="@drawable/auth_dialog_lock"/> |
| 40 | |
| 41 | <TextView |
| 42 | android:id="@+id/title" |
| 43 | android:fontFamily="@*android:string/config_headlineFontFamilyMedium" |
| 44 | android:layout_width="match_parent" |
| 45 | android:layout_height="wrap_content" |
| 46 | android:layout_marginHorizontal="24dp" |
| 47 | android:layout_marginTop="12dp" |
| 48 | android:textSize="20sp" |
| 49 | android:gravity="center" |
| 50 | android:textColor="?android:attr/textColorPrimary"/> |
| 51 | |
| 52 | <TextView |
| 53 | android:id="@+id/subtitle" |
| 54 | android:layout_width="match_parent" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:layout_marginHorizontal="24dp" |
| 57 | android:layout_marginTop="8dp" |
| 58 | android:textSize="16sp" |
| 59 | android:gravity="center" |
| 60 | android:textColor="?android:attr/textColorPrimary"/> |
| 61 | |
| 62 | <TextView |
| 63 | android:id="@+id/description" |
| 64 | android:layout_width="match_parent" |
| 65 | android:layout_height="wrap_content" |
| 66 | android:layout_marginHorizontal="24dp" |
| 67 | android:layout_marginTop="8dp" |
| 68 | android:gravity="center" |
| 69 | android:textSize="16sp" |
| 70 | android:textColor="?android:attr/textColorPrimary"/> |
| 71 | |
| 72 | <Space |
| 73 | android:layout_width="0dp" |
| 74 | android:layout_height="0dp" |
| 75 | android:layout_weight="1"/> |
| 76 | |
| 77 | <TextView |
| 78 | android:id="@+id/error" |
| 79 | android:layout_width="match_parent" |
| 80 | android:layout_height="wrap_content" |
| 81 | android:layout_marginHorizontal="24dp" |
| 82 | android:textSize="16sp" |
| 83 | android:gravity="center" |
| 84 | android:textColor="?android:attr/colorError"/> |
| 85 | |
| 86 | <Space |
| 87 | android:layout_width="0dp" |
| 88 | android:layout_height="0dp" |
| 89 | android:layout_weight="1"/> |
| 90 | |
| 91 | </LinearLayout> |
| 92 | |
| 93 | <LinearLayout |
| 94 | android:layout_width="0dp" |
| 95 | android:layout_height="match_parent" |
| 96 | android:layout_weight="1" |
| 97 | android:orientation="vertical" |
| 98 | android:gravity="center"> |
| 99 | |
| 100 | <com.android.internal.widget.LockPatternView |
| 101 | android:id="@+id/lockPattern" |
| 102 | android:layout_width="wrap_content" |
| 103 | android:layout_height="wrap_content" |
| 104 | android:layout_marginLeft="40dp" |
| 105 | android:layout_marginRight="40dp" |
| 106 | android:layout_gravity="center" |
| 107 | android:clipChildren="false" |
| 108 | android:clipToPadding="false" |
| 109 | style="@style/LockPatternStyleBiometricPrompt"/> |
| 110 | |
| 111 | </LinearLayout> |
| 112 | |
| 113 | </com.android.systemui.biometrics.AuthCredentialView> |