• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<merge xmlns:android="http://schemas.android.com/apk/res/android">
18
19    <TextView
20        android:id="@+id/title"
21        android:layout_width="match_parent"
22        android:layout_height="wrap_content"
23        android:gravity="@integer/biometric_dialog_text_gravity"
24        style="@style/TextAppearance.AuthCredential.Title"/>
25
26    <TextView
27        android:id="@+id/subtitle"
28        android:layout_width="match_parent"
29        android:layout_height="wrap_content"
30        android:gravity="@integer/biometric_dialog_text_gravity"
31        style="@style/TextAppearance.AuthCredential.Subtitle"/>
32
33    <TextView
34        android:id="@+id/description"
35        android:layout_width="match_parent"
36        android:layout_height="wrap_content"
37        android:gravity="@integer/biometric_dialog_text_gravity"
38        style="@style/TextAppearance.AuthCredential.Description"/>
39
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"
44        android:paddingTop="48dp"
45        android:layout_gravity="center_horizontal"
46        android:scaleType="fitXY" />
47
48    <TextView
49        android:id="@+id/indicator"
50        android:layout_width="match_parent"
51        android:layout_height="wrap_content"
52        android:paddingHorizontal="24dp"
53        android:paddingVertical="12dp"
54        android:textSize="12sp"
55        android:gravity="center_horizontal"
56        android:accessibilityLiveRegion="polite"
57        android:textColor="@color/biometric_dialog_gray"/>
58
59    <LinearLayout
60        android:id="@+id/button_bar"
61        android:layout_width="match_parent"
62        android:layout_height="88dp"
63        style="?android:attr/buttonBarStyle"
64        android:orientation="horizontal"
65        android:paddingTop="16dp">
66        <Space android:id="@+id/leftSpacer"
67            android:layout_width="8dp"
68            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"
73            android:layout_height="wrap_content"
74            style="@*android:style/Widget.DeviceDefault.Button.Borderless.Colored"
75            android:layout_gravity="center_vertical"
76            android:ellipsize="end"
77            android:maxLines="2"
78            android:maxWidth="@dimen/biometric_dialog_button_negative_max_width"/>
79        <Space android:id="@+id/middleSpacer"
80            android:layout_width="0dp"
81            android:layout_height="match_parent"
82            android:layout_weight="1"
83            android:visibility="visible"/>
84        <!-- Positive Button -->
85        <Button android:id="@+id/button_positive"
86            android:layout_width="wrap_content"
87            android:layout_height="wrap_content"
88            style="@*android:style/Widget.DeviceDefault.Button.Colored"
89            android:layout_gravity="center_vertical"
90            android:ellipsize="end"
91            android:maxLines="2"
92            android:maxWidth="@dimen/biometric_dialog_button_positive_max_width"
93            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"
98            android:layout_height="wrap_content"
99            style="@*android:style/Widget.DeviceDefault.Button.Colored"
100            android:layout_gravity="center_vertical"
101            android:ellipsize="end"
102            android:maxLines="2"
103            android:maxWidth="@dimen/biometric_dialog_button_positive_max_width"
104            android:text="@string/biometric_dialog_try_again"
105            android:visibility="gone"/>
106        <Space android:id="@+id/rightSpacer"
107            android:layout_width="8dp"
108            android:layout_height="match_parent"
109            android:visibility="visible" />
110    </LinearLayout>
111
112</merge>