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