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.ui.CredentialPatternView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="horizontal"
23    android:elevation="@dimen/biometric_dialog_elevation"
24    android:theme="?app:attr/lockPatternStyle">
25
26    <RelativeLayout
27        android:id="@+id/auth_credential_header"
28        style="?headerStyle"
29        android:layout_width="0dp"
30        android:layout_height="match_parent"
31        android:layout_weight="1">
32
33        <ImageView
34            android:id="@+id/icon"
35            style="?headerIconStyle"
36            android:layout_alignParentLeft="true"
37            android:layout_alignParentTop="true"
38            android:contentDescription="@null"/>
39
40        <TextView
41            android:id="@+id/title"
42            style="?titleTextAppearance"
43            android:layout_below="@id/icon"
44            android:layout_width="wrap_content"
45            android:layout_height="wrap_content"/>
46
47        <TextView
48            android:id="@+id/subtitle"
49            style="?subTitleTextAppearance"
50            android:layout_below="@id/title"
51            android:layout_alignParentLeft="true"
52            android:layout_width="wrap_content"
53            android:layout_height="wrap_content" />
54
55        <TextView
56            android:id="@+id/description"
57            style="?descriptionTextAppearance"
58            android:layout_below="@id/subtitle"
59            android:layout_alignParentLeft="true"
60            android:layout_width="wrap_content"
61            android:layout_height="wrap_content"/>
62
63    </RelativeLayout>
64
65    <FrameLayout
66        android:layout_weight="1"
67        style="?containerStyle"
68        android:layout_width="0dp"
69        android:layout_height="match_parent">
70
71        <com.android.internal.widget.LockPatternView
72            android:id="@+id/lockPattern"
73            android:layout_gravity="center"
74            android:layout_width="@dimen/biometric_auth_pattern_view_size"
75            android:layout_height="@dimen/biometric_auth_pattern_view_size"/>
76
77        <TextView
78            android:id="@+id/error"
79            style="?errorTextAppearance"
80            android:layout_width="match_parent"
81            android:layout_height="wrap_content"
82            android:layout_gravity="center_horizontal|bottom"/>
83
84    </FrameLayout>
85
86</com.android.systemui.biometrics.ui.CredentialPatternView>