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