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 | |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame] | 17 | <com.android.systemui.biometrics.AuthCredentialPatternView |
Kevin Chyn | 8cbb488 | 2019-09-19 16:49:02 -0700 | [diff] [blame] | 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 |
Alex Johnston | 5179ac6 | 2020-01-07 14:23:26 +0000 | [diff] [blame] | 37 | android:id="@+id/icon" |
| 38 | android:layout_width="wrap_content" |
| 39 | android:layout_height="wrap_content"/> |
Kevin Chyn | 8cbb488 | 2019-09-19 16:49:02 -0700 | [diff] [blame] | 40 | |
| 41 | <TextView |
| 42 | android:id="@+id/title" |
Kevin Chyn | 8cbb488 | 2019-09-19 16:49:02 -0700 | [diff] [blame] | 43 | android:layout_width="match_parent" |
| 44 | android:layout_height="wrap_content" |
Alex Johnston | 5179ac6 | 2020-01-07 14:23:26 +0000 | [diff] [blame] | 45 | style="@style/TextAppearance.AuthCredential.Title"/> |
Kevin Chyn | 8cbb488 | 2019-09-19 16:49:02 -0700 | [diff] [blame] | 46 | |
| 47 | <TextView |
| 48 | android:id="@+id/subtitle" |
| 49 | android:layout_width="match_parent" |
| 50 | android:layout_height="wrap_content" |
| 51 | android:layout_marginHorizontal="24dp" |
| 52 | android:layout_marginTop="8dp" |
| 53 | android:textSize="16sp" |
| 54 | android:gravity="center" |
| 55 | android:textColor="?android:attr/textColorPrimary"/> |
| 56 | |
| 57 | <TextView |
| 58 | android:id="@+id/description" |
| 59 | android:layout_width="match_parent" |
| 60 | android:layout_height="wrap_content" |
Alex Johnston | 5179ac6 | 2020-01-07 14:23:26 +0000 | [diff] [blame] | 61 | style="@style/TextAppearance.AuthCredential.Description"/> |
Kevin Chyn | 8cbb488 | 2019-09-19 16:49:02 -0700 | [diff] [blame] | 62 | |
| 63 | <Space |
| 64 | android:layout_width="0dp" |
| 65 | android:layout_height="0dp" |
| 66 | android:layout_weight="1"/> |
| 67 | |
Curtis Belmonte | 9367379 | 2020-03-18 12:40:24 -0700 | [diff] [blame] | 68 | <TextView |
| 69 | android:id="@+id/error" |
| 70 | android:layout_width="match_parent" |
| 71 | android:layout_height="wrap_content" |
| 72 | android:layout_marginHorizontal="24dp" |
| 73 | android:textSize="16sp" |
| 74 | android:gravity="center" |
| 75 | android:textColor="?android:attr/colorError"/> |
| 76 | |
| 77 | <Space |
| 78 | android:layout_width="0dp" |
| 79 | android:layout_height="0dp" |
| 80 | android:layout_weight="1"/> |
| 81 | |
Alex Johnston | 5179ac6 | 2020-01-07 14:23:26 +0000 | [diff] [blame] | 82 | </LinearLayout> |
| 83 | |
| 84 | <LinearLayout |
Curtis Belmonte | 9367379 | 2020-03-18 12:40:24 -0700 | [diff] [blame] | 85 | android:layout_width="0dp" |
| 86 | android:layout_height="match_parent" |
| 87 | android:layout_weight="1" |
Alex Johnston | 5179ac6 | 2020-01-07 14:23:26 +0000 | [diff] [blame] | 88 | android:orientation="vertical" |
| 89 | android:gravity="center" |
| 90 | android:paddingLeft="0dp" |
| 91 | android:paddingRight="0dp" |
| 92 | android:paddingTop="0dp" |
| 93 | android:paddingBottom="16dp" |
| 94 | android:clipToPadding="false"> |
| 95 | |
| 96 | <FrameLayout |
| 97 | android:layout_width="wrap_content" |
| 98 | android:layout_height="0dp" |
| 99 | android:layout_weight="1" |
| 100 | style="@style/LockPatternContainerStyle"> |
| 101 | |
| 102 | <com.android.internal.widget.LockPatternView |
| 103 | android:id="@+id/lockPattern" |
| 104 | android:layout_width="match_parent" |
| 105 | android:layout_height="match_parent" |
| 106 | android:layout_gravity="center" |
| 107 | style="@style/LockPatternStyleBiometricPrompt"/> |
| 108 | |
| 109 | </FrameLayout> |
| 110 | |
Kevin Chyn | 8cbb488 | 2019-09-19 16:49:02 -0700 | [diff] [blame] | 111 | </LinearLayout> |
| 112 | |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame] | 113 | </com.android.systemui.biometrics.AuthCredentialPatternView> |