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.AuthCredentialPatternView
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="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:id="@+id/icon"
32        android:layout_width="wrap_content"
33        android:layout_height="wrap_content"/>
34
35    <TextView
36        android:id="@+id/title"
37        android:layout_width="match_parent"
38        android:layout_height="wrap_content"
39        style="@style/TextAppearance.AuthCredential.Title"/>
40
41    <TextView
42        android:id="@+id/subtitle"
43        android:layout_width="match_parent"
44        android:layout_height="wrap_content"
45        style="@style/TextAppearance.AuthCredential.Subtitle"/>
46
47    <TextView
48        android:id="@+id/description"
49        android:layout_width="match_parent"
50        android:layout_height="wrap_content"
51        style="@style/TextAppearance.AuthCredential.Description"/>
52
53    <Space
54        android:layout_width="0dp"
55        android:layout_height="0dp"
56        android:layout_weight="1"/>
57
58    <LinearLayout
59        android:layout_width="match_parent"
60        android:layout_height="wrap_content"
61        android:orientation="vertical"
62        android:gravity="center"
63        android:paddingLeft="0dp"
64        android:paddingRight="0dp"
65        android:paddingTop="0dp"
66        android:paddingBottom="16dp"
67        android:clipToPadding="false">
68
69        <FrameLayout
70            android:layout_width="wrap_content"
71            android:layout_height="0dp"
72            android:layout_weight="1"
73            style="@style/LockPatternContainerStyle">
74
75            <com.android.internal.widget.LockPatternView
76                android:id="@+id/lockPattern"
77                android:layout_width="match_parent"
78                android:layout_height="match_parent"
79                android:layout_gravity="center"
80                style="@style/LockPatternStyleBiometricPrompt"/>
81
82        </FrameLayout>
83
84        <TextView
85            android:id="@+id/error"
86            android:layout_width="match_parent"
87            android:layout_height="wrap_content"
88            style="@style/TextAppearance.AuthCredential.Error"/>
89
90    </LinearLayout>
91
92    <Space
93        android:layout_width="0dp"
94        android:layout_height="0dp"
95        android:layout_weight="1"/>
96
97</com.android.systemui.biometrics.AuthCredentialPatternView>