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 <ScrollView 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content"> 22 23 <RelativeLayout 24 android:id="@+id/auth_credential_header" 25 style="?headerStyle" 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:paddingBottom="0dp"> 29 30 <ImageView 31 android:id="@+id/icon" 32 style="?headerIconStyle" 33 android:layout_alignParentLeft="true" 34 android:layout_alignParentTop="true" 35 android:contentDescription="@null" /> 36 37 <TextView 38 android:id="@+id/title" 39 style="?titleTextAppearance" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:layout_below="@id/icon" /> 43 44 <TextView 45 android:id="@+id/subtitle" 46 style="?subTitleTextAppearance" 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content" 49 android:layout_below="@id/title" /> 50 51 <TextView 52 android:id="@+id/description" 53 style="?descriptionTextAppearance" 54 android:layout_width="match_parent" 55 android:layout_height="wrap_content" 56 android:layout_below="@id/subtitle" /> 57 58 <LinearLayout 59 android:id="@+id/customized_view_container" 60 android:orientation="vertical" 61 android:gravity="center_vertical" 62 android:layout_below="@id/subtitle" 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content" /> 65 </RelativeLayout> 66 67 </ScrollView> 68 69 <FrameLayout 70 android:id="@+id/auth_credential_input" 71 android:layout_width="match_parent" 72 android:layout_height="match_parent" 73 android:orientation="vertical"> 74 75 <LinearLayout 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:layout_gravity="center" 79 android:orientation="vertical"> 80 81 <ImeAwareEditText 82 android:id="@+id/lockPassword" 83 style="?passwordTextAppearance" 84 android:layout_width="208dp" 85 android:layout_height="wrap_content" 86 android:layout_gravity="center_horizontal" 87 android:imeOptions="actionNext|flagNoFullscreen|flagForceAscii" 88 android:inputType="textPassword" 89 android:minHeight="48dp"/> 90 91 <TextView 92 android:id="@+id/error" 93 style="?errorTextAppearance" 94 android:layout_gravity="center_horizontal" 95 android:layout_width="match_parent" 96 android:layout_height="wrap_content"/> 97 </LinearLayout> 98 99 <Button 100 android:id="@+id/emergencyCallButton" 101 style="@style/AuthNonBioCredentialEmergencyButtonStyle" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" 104 android:visibility="gone" 105 android:layout_gravity="center_horizontal|bottom" 106 android:layout_marginTop="12dp" 107 android:layout_marginBottom="12dp" 108 android:text="@string/work_challenge_emergency_button_text"/> 109 </FrameLayout> 110 111</merge> 112