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.google.android.setupdesign.GlifLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:id="@+id/setup_wizard_layout" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:icon="@drawable/ic_lock" 23 app:sudUseBottomProgressBar="true"> 24 25 <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient 26 android:id="@+id/topLayout" 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 android:orientation="vertical"> 30 31 <LinearLayout 32 style="@style/SudContentFrame" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:orientation="vertical" 36 android:gravity="center" 37 android:paddingLeft="0dp" 38 android:paddingRight="0dp"> 39 40 <com.google.android.setupdesign.view.FillContentLayout 41 style="@style/LockPatternContainerStyle" 42 android:layout_width="wrap_content" 43 android:layout_height="0dp" 44 android:layout_weight="1"> 45 46 <com.android.internal.widget.LockPatternView 47 android:id="@+id/lockPattern" 48 android:layout_width="@dimen/biometric_auth_pattern_view_size" 49 android:layout_height="@dimen/biometric_auth_pattern_view_size" 50 android:layout_gravity="center" /> 51 52 </com.google.android.setupdesign.view.FillContentLayout> 53 54 <TextView 55 style="@style/TextAppearance.ErrorText" 56 android:accessibilityLiveRegion="polite" 57 android:id="@+id/errorText" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:layout_gravity="center_horizontal" 61 android:layout_marginStart="?attr/sudMarginStart" 62 android:layout_marginEnd="?attr/sudMarginEnd" 63 android:layout_marginTop="12dp" 64 android:layout_marginBottom="12dp" 65 android:gravity="center_vertical"/> 66 67 <CheckBox 68 android:id="@+id/checkbox" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:minHeight="48dp" 72 android:layout_marginStart="?attr/sudMarginStart" 73 android:layout_marginEnd="?attr/sudMarginEnd" 74 android:layout_marginTop="12dp" 75 android:visibility="gone" 76 android:checked="true" /> 77 78 <Button 79 android:id="@+id/cancelButton" 80 style="@style/SudGlifButton.Secondary" 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content" 83 android:layout_marginStart="?attr/sudMarginStart" 84 android:layout_marginEnd="?attr/sudMarginEnd" 85 android:text="@string/cancel" /> 86 87 <Button 88 android:id="@+id/emergencyCallButton" 89 style="@style/WorkChallengeEmergencyButtonStyle" 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" 92 android:layout_marginStart="?attr/sudMarginStart" 93 android:layout_marginEnd="?attr/sudMarginEnd" 94 android:layout_marginBottom="12dp" 95 android:visibility="gone" 96 android:layout_gravity="center_horizontal" 97 android:text="@string/work_challenge_emergency_button_text"/> 98 99 </LinearLayout> 100 101 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> 102 103</com.google.android.setupdesign.GlifLayout> 104