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<com.android.systemui.biometrics.AuthCredentialPatternView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:orientation="horizontal" 22 android:elevation="@dimen/biometric_dialog_elevation"> 23 24 <LinearLayout 25 android:layout_width="0dp" 26 android:layout_height="match_parent" 27 android:layout_weight="1" 28 android:gravity="center" 29 android:orientation="vertical"> 30 31 <Space 32 android:layout_width="0dp" 33 android:layout_height="0dp" 34 android:layout_weight="1"/> 35 36 <ImageView 37 android:id="@+id/icon" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content"/> 40 41 <TextView 42 android:id="@+id/title" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 style="@style/TextAppearance.AuthCredential.Title"/> 46 47 <TextView 48 android:id="@+id/subtitle" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 style="@style/TextAppearance.AuthCredential.Subtitle"/> 52 53 <TextView 54 android:id="@+id/description" 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 style="@style/TextAppearance.AuthCredential.Description"/> 58 59 <Space 60 android:layout_width="0dp" 61 android:layout_height="0dp" 62 android:layout_weight="1"/> 63 64 <TextView 65 android:id="@+id/error" 66 android:layout_width="match_parent" 67 android:layout_height="wrap_content" 68 style="@style/TextAppearance.AuthCredential.Error"/> 69 70 <Space 71 android:layout_width="0dp" 72 android:layout_height="0dp" 73 android:layout_weight="1"/> 74 75 </LinearLayout> 76 77 <LinearLayout 78 android:layout_width="0dp" 79 android:layout_height="match_parent" 80 android:layout_weight="1" 81 android:orientation="vertical" 82 android:gravity="center" 83 android:paddingLeft="0dp" 84 android:paddingRight="0dp" 85 android:paddingTop="0dp" 86 android:paddingBottom="16dp" 87 android:clipToPadding="false"> 88 89 <FrameLayout 90 android:layout_width="wrap_content" 91 android:layout_height="0dp" 92 android:layout_weight="1" 93 style="@style/LockPatternContainerStyle"> 94 95 <com.android.internal.widget.LockPatternView 96 android:id="@+id/lockPattern" 97 android:layout_width="match_parent" 98 android:layout_height="match_parent" 99 android:layout_gravity="center" 100 style="@style/LockPatternStyleBiometricPrompt"/> 101 102 </FrameLayout> 103 104 </LinearLayout> 105 106</com.android.systemui.biometrics.AuthCredentialPatternView>