1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2017 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 <com.android.setupwizardlib.GlifLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/setup_wizard_layout" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:icon="@drawable/ic_lock" 22 android:layout="@layout/suw_glif_blank_template" 23 android:importantForAutofill="noExcludeDescendants"> 24 25 <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient 26 android:id="@+id/topLayout" 27 android:orientation="vertical" 28 android:layout_width="match_parent" 29 android:layout_height="match_parent"> 30 31 <ImageView 32 android:id="@+id/suw_layout_icon" 33 style="@style/SuwGlifIcon" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:src="@drawable/ic_lock" /> 37 38 <TextView 39 android:id="@+id/headerText" 40 style="@style/SuwGlifHeaderTitle" 41 android:layout_width="match_parent" 42 android:layout_height="wrap_content" /> 43 44 <TextView 45 android:id="@+id/detailsText" 46 style="@style/SuwDescription.Glif" 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content" 49 android:layout_marginStart="?attr/suwMarginSides" 50 android:layout_marginEnd="?attr/suwMarginSides" /> 51 52 <Space 53 android:layout_width="match_parent" 54 android:layout_height="0dp" 55 android:layout_weight="1" /> 56 57 <EditText 58 android:id="@+id/password_entry" 59 android:layout_width="208dp" 60 android:layout_height="wrap_content" 61 android:layout_gravity="center_horizontal" 62 android:layout_marginTop="-40dp" 63 android:inputType="textPassword" 64 android:imeOptions="actionNext|flagNoFullscreen|flagForceAscii" 65 android:gravity="center" 66 android:textSize="16sp" 67 style="@style/TextAppearance.PasswordEntry"/> 68 69 <TextView 70 style="@style/TextAppearance.ConfirmDeviceCredentialsErrorText" 71 android:accessibilityLiveRegion="polite" 72 android:id="@+id/errorText" 73 android:layout_width="wrap_content" 74 android:layout_height="0dp" 75 android:layout_weight="1" 76 android:layout_gravity="center_horizontal" 77 android:layout_marginStart="12dp" 78 android:layout_marginEnd="12dp" 79 android:gravity="center_vertical"/> 80 81 <ImageView 82 android:id="@+id/fingerprintIcon" 83 android:layout_gravity="center_horizontal" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:layout_alignParentBottom="true" 87 android:layout_marginBottom="24dp" 88 android:contentDescription="@string/confirm_fingerprint_icon_content_description" 89 android:visibility="gone"/> 90 91 <Button 92 style="@style/SetupWizardButton.Negative" 93 android:id="@+id/cancelButton" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:text="@string/cancel" /> 97 98 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> 99 </com.android.setupwizardlib.GlifLayout>