blob: 45638ce5e74473dc17ef4f56cfe6ba337efadda2 [file] [log] [blame]
Kevin Chynff168dc2019-09-16 16:04:38 -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.AuthCredentialPasswordView
Kevin Chynff168dc2019-09-16 16:04:38 -070018 xmlns:android="http://schemas.android.com/apk/res/android"
Kevin Chynff168dc2019-09-16 16:04:38 -070019 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
Alex Johnston5179ac62020-01-07 14:23:26 +000031 android:id="@+id/icon"
32 android:layout_width="wrap_content"
33 android:layout_height="wrap_content"/>
Kevin Chynff168dc2019-09-16 16:04:38 -070034
35 <TextView
36 android:id="@+id/title"
Kevin Chynff168dc2019-09-16 16:04:38 -070037 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
Alex Johnston5179ac62020-01-07 14:23:26 +000039 style="@style/TextAppearance.AuthCredential.Title"/>
Kevin Chynff168dc2019-09-16 16:04:38 -070040
41 <TextView
42 android:id="@+id/subtitle"
43 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
Curtis Belmontece035932020-03-26 13:43:25 -070045 style="@style/TextAppearance.AuthCredential.Subtitle"/>
Kevin Chynff168dc2019-09-16 16:04:38 -070046
47 <TextView
48 android:id="@+id/description"
49 android:layout_width="match_parent"
50 android:layout_height="wrap_content"
Alex Johnston5179ac62020-01-07 14:23:26 +000051 style="@style/TextAppearance.AuthCredential.Description"/>
Kevin Chynff168dc2019-09-16 16:04:38 -070052
53 <Space
54 android:layout_width="0dp"
55 android:layout_height="0dp"
Kevin Chyn8110ebb2019-10-02 11:16:31 -070056 android:layout_weight="1"/>
Kevin Chynff168dc2019-09-16 16:04:38 -070057
Kevin Chyn8110ebb2019-10-02 11:16:31 -070058 <EditText
59 android:id="@+id/lockPassword"
Kevin Chyn8110ebb2019-10-02 11:16:31 -070060 android:layout_width="208dp"
Kevin Chynff168dc2019-09-16 16:04:38 -070061 android:layout_height="wrap_content"
Alex Johnston5179ac62020-01-07 14:23:26 +000062 android:layout_gravity="center_horizontal"
Curtis Belmontea2d54302020-02-05 14:06:47 -080063 android:minHeight="48dp"
Kevin Chyn8110ebb2019-10-02 11:16:31 -070064 android:gravity="center"
65 android:inputType="textPassword"
66 android:maxLength="500"
Alex Johnston5179ac62020-01-07 14:23:26 +000067 android:imeOptions="actionNext|flagNoFullscreen|flagForceAscii"
68 style="@style/TextAppearance.AuthCredential.PasswordEntry"/>
Kevin Chynff168dc2019-09-16 16:04:38 -070069
Curtis Belmontece035932020-03-26 13:43:25 -070070 <TextView
71 android:id="@+id/error"
72 android:layout_width="match_parent"
73 android:layout_height="wrap_content"
74 style="@style/TextAppearance.AuthCredential.Error"/>
75
Kevin Chynff168dc2019-09-16 16:04:38 -070076 <Space
77 android:layout_width="0dp"
78 android:layout_height="0dp"
Kevin Chyn8110ebb2019-10-02 11:16:31 -070079 android:layout_weight="5"/>
Kevin Chynff168dc2019-09-16 16:04:38 -070080
Kevin Chyn8110ebb2019-10-02 11:16:31 -070081</com.android.systemui.biometrics.AuthCredentialPasswordView>