blob: e791c8aea97e84a1b5bd0fd320de3a32f27e9361 [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
Curtis Belmonte93673792020-03-18 12:40:24 -070068 <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 Johnston5179ac62020-01-07 14:23:26 +000082 </LinearLayout>
83
84 <LinearLayout
Curtis Belmonte93673792020-03-18 12:40:24 -070085 android:layout_width="0dp"
86 android:layout_height="match_parent"
87 android:layout_weight="1"
Alex Johnston5179ac62020-01-07 14:23:26 +000088 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 Chyn8cbb4882019-09-19 16:49:02 -0700111 </LinearLayout>
112
Kevin Chyn8110ebb2019-10-02 11:16:31 -0700113</com.android.systemui.biometrics.AuthCredentialPatternView>