blob: a87c7b3fa9275c44f1198b1a4ef1bc45fc57746a [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"
Curtis Belmonte7100caa2020-06-19 14:26:02 -070053 android:paddingVertical="12dp"
Kevin Chynfc468262019-08-20 17:17:11 -070054 android:textSize="12sp"
55 android:gravity="center_horizontal"
56 android:accessibilityLiveRegion="polite"
Kevin Chyn504f77d2019-08-26 15:36:19 -070057 android:textColor="@color/biometric_dialog_gray"/>
Kevin Chynfc468262019-08-20 17:17:11 -070058
59 <LinearLayout
Kevin Chyn504f77d2019-08-26 15:36:19 -070060 android:id="@+id/button_bar"
Kevin Chynfc468262019-08-20 17:17:11 -070061 android:layout_width="match_parent"
Curtis Belmonte7100caa2020-06-19 14:26:02 -070062 android:layout_height="88dp"
Kevin Chynfc468262019-08-20 17:17:11 -070063 style="?android:attr/buttonBarStyle"
Curtis Belmonte7100caa2020-06-19 14:26:02 -070064 android:orientation="horizontal"
65 android:paddingTop="16dp">
Kevin Chynfc468262019-08-20 17:17:11 -070066 <Space android:id="@+id/leftSpacer"
Curtis Belmonte7100caa2020-06-19 14:26:02 -070067 android:layout_width="8dp"
Kevin Chynfc468262019-08-20 17:17:11 -070068 android:layout_height="match_parent"
69 android:visibility="visible" />
70 <!-- Negative Button -->
71 <Button android:id="@+id/button_negative"
72 android:layout_width="wrap_content"
Curtis Belmonte7100caa2020-06-19 14:26:02 -070073 android:layout_height="wrap_content"
Kevin Chynfc468262019-08-20 17:17:11 -070074 style="@*android:style/Widget.DeviceDefault.Button.Borderless.Colored"
Curtis Belmonte7100caa2020-06-19 14:26:02 -070075 android:layout_gravity="center_vertical"
76 android:ellipsize="end"
77 android:maxLines="2"
78 android:maxWidth="@dimen/biometric_dialog_button_negative_max_width"/>
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"
Curtis Belmonte7100caa2020-06-19 14:26:02 -070087 android:layout_height="wrap_content"
Kevin Chynfc468262019-08-20 17:17:11 -070088 style="@*android:style/Widget.DeviceDefault.Button.Colored"
Curtis Belmonte7100caa2020-06-19 14:26:02 -070089 android:layout_gravity="center_vertical"
90 android:ellipsize="end"
Kevin Chynfc468262019-08-20 17:17:11 -070091 android:maxLines="2"
Curtis Belmonte7100caa2020-06-19 14:26:02 -070092 android:maxWidth="@dimen/biometric_dialog_button_positive_max_width"
Kevin Chynfc468262019-08-20 17:17:11 -070093 android:text="@string/biometric_dialog_confirm"
94 android:visibility="gone"/>
95 <!-- Try Again Button -->
96 <Button android:id="@+id/button_try_again"
97 android:layout_width="wrap_content"
Curtis Belmonte7100caa2020-06-19 14:26:02 -070098 android:layout_height="wrap_content"
Kevin Chynfc468262019-08-20 17:17:11 -070099 style="@*android:style/Widget.DeviceDefault.Button.Colored"
Curtis Belmonte7100caa2020-06-19 14:26:02 -0700100 android:layout_gravity="center_vertical"
101 android:ellipsize="end"
Kevin Chynfc468262019-08-20 17:17:11 -0700102 android:maxLines="2"
Curtis Belmonte7100caa2020-06-19 14:26:02 -0700103 android:maxWidth="@dimen/biometric_dialog_button_positive_max_width"
Kevin Chynfc468262019-08-20 17:17:11 -0700104 android:text="@string/biometric_dialog_try_again"
105 android:visibility="gone"/>
106 <Space android:id="@+id/rightSpacer"
Curtis Belmonte7100caa2020-06-19 14:26:02 -0700107 android:layout_width="8dp"
Kevin Chynfc468262019-08-20 17:17:11 -0700108 android:layout_height="match_parent"
109 android:visibility="visible" />
110 </LinearLayout>
111
112</merge>