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 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="vertical" 23 android:elevation="@dimen/biometric_dialog_elevation" 24 android:theme="?app:attr/lockPatternStyle"> 25 26 <RelativeLayout 27 android:id="@+id/auth_credential_header" 28 style="?headerStyle" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content"> 31 32 <ImageView 33 android:id="@+id/icon" 34 style="?headerIconStyle" 35 android:layout_alignParentLeft="true" 36 android:layout_alignParentTop="true" 37 android:contentDescription="@null"/> 38 39 <TextView 40 android:id="@+id/title" 41 style="?titleTextAppearance" 42 android:layout_below="@id/icon" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content"/> 45 46 <TextView 47 android:id="@+id/subtitle" 48 style="?subTitleTextAppearance" 49 android:layout_below="@id/title" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content"/> 52 53 <TextView 54 android:id="@+id/description" 55 style="?descriptionTextAppearance" 56 android:layout_below="@id/subtitle" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content"/> 59 </RelativeLayout> 60 61 <FrameLayout 62 android:id="@+id/auth_credential_container" 63 style="?containerStyle" 64 android:layout_width="match_parent" 65 android:layout_height="match_parent"> 66 67 <com.android.internal.widget.LockPatternView 68 android:id="@+id/lockPattern" 69 android:layout_gravity="center" 70 android:layout_width="@dimen/biometric_auth_pattern_view_size" 71 android:layout_height="@dimen/biometric_auth_pattern_view_size"/> 72 73 <TextView 74 android:id="@+id/error" 75 style="?errorTextAppearance" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:layout_gravity="center_horizontal|bottom"/> 79 </FrameLayout> 80 81</com.android.systemui.biometrics.AuthCredentialPatternView>