blob: 6b61046e0f6c0bc675076166adda27a1346f5ce4 [file] [log] [blame]
Kevin Chynfc468262019-08-20 17:17:11 -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
17<merge xmlns:android="http://schemas.android.com/apk/res/android">
18
19 <TextView
20 android:id="@+id/title"
Kevin Chynfc468262019-08-20 17:17:11 -070021 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
Kevin Chynfc468262019-08-20 17:17:11 -070023 android:gravity="@integer/biometric_dialog_text_gravity"
Curtis Belmontece035932020-03-26 13:43:25 -070024 style="@style/TextAppearance.AuthCredential.Title"/>
Kevin Chynfc468262019-08-20 17:17:11 -070025
26 <TextView
27 android:id="@+id/subtitle"
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
Kevin Chynfc468262019-08-20 17:17:11 -070030 android:gravity="@integer/biometric_dialog_text_gravity"
Curtis Belmontece035932020-03-26 13:43:25 -070031 style="@style/TextAppearance.AuthCredential.Subtitle"/>
Kevin Chynfc468262019-08-20 17:17:11 -070032
33 <TextView
34 android:id="@+id/description"
35 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
Kevin Chynfc468262019-08-20 17:17:11 -070037 android:gravity="@integer/biometric_dialog_text_gravity"
Curtis Belmontece035932020-03-26 13:43:25 -070038 style="@style/TextAppearance.AuthCredential.Description"/>
Kevin Chynfc468262019-08-20 17:17:11 -070039
40 <ImageView
41 android:id="@+id/biometric_icon"
42 android:layout_width="@dimen/biometric_dialog_biometric_icon_size"
43 android:layout_height="@dimen/biometric_dialog_biometric_icon_size"
Kevin Chync2ea8f22019-09-18 11:47:24 -070044 android:paddingTop="48dp"
Kevin Chynfc468262019-08-20 17:17:11 -070045 android:layout_gravity="center_horizontal"
46 android:scaleType="fitXY" />
47
48 <TextView
Kevin Chyn9cf89912019-08-30 13:33:58 -070049 android:id="@+id/indicator"
Kevin Chynfc468262019-08-20 17:17:11 -070050 android:layout_width="match_parent"
51 android:layout_height="wrap_content"
52 android:paddingHorizontal="24dp"
53 android:paddingTop="16dp"
54 android:paddingBottom="24dp"
55 android:textSize="12sp"
56 android:gravity="center_horizontal"
57 android:accessibilityLiveRegion="polite"
Kevin Chyn504f77d2019-08-26 15:36:19 -070058 android:textColor="@color/biometric_dialog_gray"/>
Kevin Chynfc468262019-08-20 17:17:11 -070059
60 <LinearLayout
Kevin Chyn504f77d2019-08-26 15:36:19 -070061 android:id="@+id/button_bar"
Kevin Chynfc468262019-08-20 17:17:11 -070062 android:layout_width="match_parent"
63 android:layout_height="72dip"
64 android:paddingTop="24dp"
65 android:layout_gravity="center_vertical"
66 style="?android:attr/buttonBarStyle"
67 android:orientation="horizontal">
68 <Space android:id="@+id/leftSpacer"
69 android:layout_width="12dp"
70 android:layout_height="match_parent"
71 android:visibility="visible" />
72 <!-- Negative Button -->
73 <Button android:id="@+id/button_negative"
74 android:layout_width="wrap_content"
75 android:layout_height="match_parent"
76 style="@*android:style/Widget.DeviceDefault.Button.Borderless.Colored"
77 android:gravity="center"
Kevin Chyn504f77d2019-08-26 15:36:19 -070078 android:maxLines="2"/>
Kevin Chynfc468262019-08-20 17:17:11 -070079 <Space android:id="@+id/middleSpacer"
80 android:layout_width="0dp"
81 android:layout_height="match_parent"
82 android:layout_weight="1"
Kevin Chyn504f77d2019-08-26 15:36:19 -070083 android:visibility="visible"/>
Kevin Chynfc468262019-08-20 17:17:11 -070084 <!-- Positive Button -->
85 <Button android:id="@+id/button_positive"
86 android:layout_width="wrap_content"
87 android:layout_height="match_parent"
88 style="@*android:style/Widget.DeviceDefault.Button.Colored"
89 android:gravity="center"
90 android:maxLines="2"
91 android:text="@string/biometric_dialog_confirm"
92 android:visibility="gone"/>
93 <!-- Try Again Button -->
94 <Button android:id="@+id/button_try_again"
95 android:layout_width="wrap_content"
96 android:layout_height="match_parent"
97 style="@*android:style/Widget.DeviceDefault.Button.Colored"
98 android:gravity="center"
99 android:maxLines="2"
100 android:text="@string/biometric_dialog_try_again"
101 android:visibility="gone"/>
102 <Space android:id="@+id/rightSpacer"
103 android:layout_width="12dip"
104 android:layout_height="match_parent"
105 android:visibility="visible" />
106 </LinearLayout>
107
108</merge>