Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 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" |
Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="wrap_content" |
Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 23 | android:gravity="@integer/biometric_dialog_text_gravity" |
Curtis Belmonte | ce03593 | 2020-03-26 13:43:25 -0700 | [diff] [blame] | 24 | style="@style/TextAppearance.AuthCredential.Title"/> |
Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 25 | |
| 26 | <TextView |
| 27 | android:id="@+id/subtitle" |
| 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="wrap_content" |
Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 30 | android:gravity="@integer/biometric_dialog_text_gravity" |
Curtis Belmonte | ce03593 | 2020-03-26 13:43:25 -0700 | [diff] [blame] | 31 | style="@style/TextAppearance.AuthCredential.Subtitle"/> |
Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 32 | |
| 33 | <TextView |
| 34 | android:id="@+id/description" |
| 35 | android:layout_width="match_parent" |
| 36 | android:layout_height="wrap_content" |
Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 37 | android:gravity="@integer/biometric_dialog_text_gravity" |
Curtis Belmonte | ce03593 | 2020-03-26 13:43:25 -0700 | [diff] [blame] | 38 | style="@style/TextAppearance.AuthCredential.Description"/> |
Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 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" |
Kevin Chyn | c2ea8f2 | 2019-09-18 11:47:24 -0700 | [diff] [blame] | 44 | android:paddingTop="48dp" |
Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 45 | android:layout_gravity="center_horizontal" |
| 46 | android:scaleType="fitXY" /> |
| 47 | |
| 48 | <TextView |
Kevin Chyn | 9cf8991 | 2019-08-30 13:33:58 -0700 | [diff] [blame] | 49 | android:id="@+id/indicator" |
Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 50 | 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 Chyn | 504f77d | 2019-08-26 15:36:19 -0700 | [diff] [blame] | 58 | android:textColor="@color/biometric_dialog_gray"/> |
Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 59 | |
| 60 | <LinearLayout |
Kevin Chyn | 504f77d | 2019-08-26 15:36:19 -0700 | [diff] [blame] | 61 | android:id="@+id/button_bar" |
Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 62 | 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 Chyn | 504f77d | 2019-08-26 15:36:19 -0700 | [diff] [blame] | 78 | android:maxLines="2"/> |
Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 79 | <Space android:id="@+id/middleSpacer" |
| 80 | android:layout_width="0dp" |
| 81 | android:layout_height="match_parent" |
| 82 | android:layout_weight="1" |
Kevin Chyn | 504f77d | 2019-08-26 15:36:19 -0700 | [diff] [blame] | 83 | android:visibility="visible"/> |
Kevin Chyn | fc46826 | 2019-08-20 17:17:11 -0700 | [diff] [blame] | 84 | <!-- 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> |