1<!--
2  ~ Copyright (C) 2020 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.CredentialPasswordView
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/lockPinPasswordStyle">
25
26    <RelativeLayout
27        android:id="@+id/auth_credential_header"
28        style="?headerStyle"
29        android:layout_width="wrap_content"
30        android:layout_height="match_parent">
31
32        <ImageView
33            android:id="@+id/icon"
34            style="?headerIconStyle"
35            android:layout_alignParentLeft="true"
36            android:layout_alignParentTop="true"
37            android:contentDescription="@null"/>
38
39        <TextView
40            android:id="@+id/title"
41            style="?titleTextAppearance"
42            android:layout_below="@id/icon"
43            android:layout_width="match_parent"
44            android:layout_height="wrap_content" />
45
46        <TextView
47            android:id="@+id/subtitle"
48            style="?subTitleTextAppearance"
49            android:layout_below="@id/title"
50            android:layout_alignParentLeft="true"
51            android:layout_width="match_parent"
52            android:layout_height="wrap_content" />
53
54        <TextView
55            android:id="@+id/description"
56            style="?descriptionTextAppearance"
57            android:layout_below="@id/subtitle"
58            android:layout_alignParentLeft="true"
59            android:layout_width="match_parent"
60            android:layout_height="wrap_content" />
61
62    </RelativeLayout>
63
64    <LinearLayout
65        android:id="@+id/auth_credential_input"
66        android:layout_width="wrap_content"
67        android:layout_height="wrap_content"
68        android:orientation="vertical">
69
70        <ImeAwareEditText
71            android:id="@+id/lockPassword"
72            style="?passwordTextAppearance"
73            android:layout_width="208dp"
74            android:layout_height="wrap_content"
75            android:layout_gravity="center"
76            android:imeOptions="actionNext|flagNoFullscreen|flagForceAscii"
77            android:inputType="textPassword"
78            android:minHeight="48dp" />
79
80        <TextView
81            android:id="@+id/error"
82            style="?errorTextAppearance"
83            android:layout_gravity="center"
84            android:layout_width="wrap_content"
85            android:layout_height="wrap_content" />
86
87    </LinearLayout>
88
89</com.android.systemui.biometrics.ui.CredentialPasswordView>