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 24 <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient 25 android:id="@+id/topLayout" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:orientation="vertical"> 29 30 <LinearLayout 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:orientation="vertical"> 34 35 <ImageView 36 android:id="@+id/suw_layout_icon" 37 style="@style/LockPatternIconStyle" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:layout_gravity="?attr/suwGlifHeaderGravity" 41 android:src="@drawable/ic_lock" /> 42 43 <TextView 44 android:id="@+id/headerText" 45 style="@style/SuwGlifHeaderTitle" 46 android:layout_width="match_parent" 47 android:layout_height="wrap_content" /> 48 49 <TextView 50 style="@style/SuwDescription.Glif" 51 android:id="@+id/detailsText" 52 android:layout_width="match_parent" 53 android:layout_height="wrap_content" 54 android:layout_marginStart="?attr/suwMarginSides" 55 android:layout_marginEnd="?attr/suwMarginSides" /> 56 57 </LinearLayout> 58 59 <LinearLayout 60 style="@style/SuwContentFrame" 61 android:layout_width="match_parent" 62 android:layout_height="wrap_content" 63 android:orientation="vertical" 64 android:gravity="center" 65 android:paddingLeft="0dp" 66 android:paddingRight="0dp"> 67 68 <com.android.setupwizardlib.view.FillContentLayout 69 style="@style/LockPatternContainerStyle" 70 android:layout_width="wrap_content" 71 android:layout_height="0dp" 72 android:layout_weight="1"> 73 74 <com.android.internal.widget.LockPatternView 75 android:id="@+id/lockPattern" 76 android:layout_width="match_parent" 77 android:layout_height="match_parent" 78 android:layout_gravity="center" /> 79 80 </com.android.setupwizardlib.view.FillContentLayout> 81 82 <TextView 83 style="@style/TextAppearance.ConfirmDeviceCredentialsErrorText" 84 android:accessibilityLiveRegion="polite" 85 android:id="@+id/errorText" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:layout_gravity="center_horizontal" 89 android:layout_marginHorizontal="?attr/suwMarginSides" 90 android:layout_marginTop="12dp" 91 android:gravity="center_vertical"/> 92 93 <ImageView 94 android:id="@+id/fingerprintIcon" 95 android:layout_gravity="center_horizontal" 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" 98 android:layout_marginHorizontal="?attr/suwMarginSides" 99 android:layout_marginBottom="24dp" 100 android:contentDescription="@string/confirm_fingerprint_icon_content_description" 101 android:visibility="gone"/> 102 103 <Button 104 android:id="@+id/cancelButton" 105 style="@style/SuwGlifButton.Secondary" 106 android:layout_width="wrap_content" 107 android:layout_height="wrap_content" 108 android:layout_marginStart="?attr/suwMarginSides" 109 android:layout_marginEnd="?attr/suwMarginSides" 110 android:layout_marginBottom="80dp" 111 android:text="@string/cancel" /> 112 113 </LinearLayout> 114 115 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> 116 117 </com.android.setupwizardlib.GlifLayout> 118