blob: c40e47df9a55decc50d47390d4b9cb4c48032c62 [file] [log] [blame]
Kevin Chyn8cbb4882019-09-19 16:49:02 -07001<!--
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 Chyn8110ebb2019-10-02 11:16:31 -070017<com.android.systemui.biometrics.AuthCredentialPatternView
Kevin Chyn8cbb4882019-09-19 16:49:02 -070018 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 Johnston5179ac62020-01-07 14:23:26 +000037 android:id="@+id/icon"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"/>
Kevin Chyn8cbb4882019-09-19 16:49:02 -070040
41 <TextView
42 android:id="@+id/title"
Kevin Chyn8cbb4882019-09-19 16:49:02 -070043 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
Alex Johnston5179ac62020-01-07 14:23:26 +000045 style="@style/TextAppearance.AuthCredential.Title"/>
Kevin Chyn8cbb4882019-09-19 16:49:02 -070046
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 Johnston5179ac62020-01-07 14:23:26 +000061 style="@style/TextAppearance.AuthCredential.Description"/>
Kevin Chyn8cbb4882019-09-19 16:49:02 -070062
63 <Space
64 android:layout_width="0dp"
65 android:layout_height="0dp"
66 android:layout_weight="1"/>
67
Alex Johnston5179ac62020-01-07 14:23:26 +000068 </LinearLayout>
69
70 <LinearLayout
71 android:layout_width="match_parent"
72 android:layout_height="wrap_content"
73 android:orientation="vertical"
74 android:gravity="center"
75 android:paddingLeft="0dp"
76 android:paddingRight="0dp"
77 android:paddingTop="0dp"
78 android:paddingBottom="16dp"
79 android:clipToPadding="false">
80
81 <FrameLayout
82 android:layout_width="wrap_content"
83 android:layout_height="0dp"
84 android:layout_weight="1"
85 style="@style/LockPatternContainerStyle">
86
87 <com.android.internal.widget.LockPatternView
88 android:id="@+id/lockPattern"
89 android:layout_width="match_parent"
90 android:layout_height="match_parent"
91 android:layout_gravity="center"
92 style="@style/LockPatternStyleBiometricPrompt"/>
93
94 </FrameLayout>
95
Kevin Chyn8cbb4882019-09-19 16:49:02 -070096 <TextView
97 android:id="@+id/error"
98 android:layout_width="match_parent"
99 android:layout_height="wrap_content"
100 android:layout_marginHorizontal="24dp"
101 android:textSize="16sp"
102 android:gravity="center"
103 android:textColor="?android:attr/colorError"/>
104
105 <Space
106 android:layout_width="0dp"
107 android:layout_height="0dp"
108 android:layout_weight="1"/>
109
110 </LinearLayout>
111
Kevin Chyn8110ebb2019-10-02 11:16:31 -0700112</com.android.systemui.biometrics.AuthCredentialPatternView>