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.ui.CredentialPatternView 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 60 <LinearLayout 61 android:id="@+id/customized_view_container" 62 android:orientation="vertical" 63 android:gravity="center_vertical" 64 android:layout_below="@id/subtitle" 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" /> 67 </RelativeLayout> 68 69 <RelativeLayout 70 android:id="@+id/auth_credential_container" 71 android:layout_width="match_parent" 72 android:layout_height="match_parent"> 73 74 <FrameLayout 75 android:layout_centerInParent="true" 76 android:layout_above="@id/emergencyCallButton" 77 style="?containerStyle" 78 android:layout_width="wrap_content" 79 android:layout_height="match_parent"> 80 81 <com.android.internal.widget.LockPatternView 82 android:id="@+id/lockPattern" 83 android:layout_gravity="center" 84 android:layout_width="@dimen/biometric_auth_pattern_view_size" 85 android:layout_height="@dimen/biometric_auth_pattern_view_size"/> 86 87 <TextView 88 android:id="@+id/error" 89 style="?errorTextAppearance" 90 android:layout_width="match_parent" 91 android:layout_height="wrap_content" 92 android:layout_gravity="center_horizontal|bottom"/> 93 </FrameLayout> 94 95 <Button 96 android:id="@+id/emergencyCallButton" 97 style="@style/AuthNonBioCredentialEmergencyButtonStyle" 98 android:layout_width="wrap_content" 99 android:layout_height="wrap_content" 100 android:layout_alignParentBottom="true" 101 android:visibility="gone" 102 android:layout_marginBottom="35dp" 103 android:layout_centerHorizontal="true" 104 android:text="@string/work_challenge_emergency_button_text"/> 105 </RelativeLayout> 106 107</com.android.systemui.biometrics.ui.CredentialPatternView> 108