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    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/sud_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/sud_layout_icon"
44                    style="@style/SudGlifIcon"
45                    android:layout_width="wrap_content"
46                    android:layout_height="wrap_content"
47                    android:layout_gravity="?attr/sudGlifHeaderGravity"
48                    android:src="@drawable/ic_lock" />
49
50                <TextView
51                    android:id="@+id/headerText"
52                    style="@style/SudGlifHeaderTitle"
53                    android:layout_width="match_parent"
54                    android:layout_height="wrap_content" />
55
56                <TextView
57                    style="@style/SudDescription.Glif"
58                    android:id="@+id/sud_layout_description"
59                    android:layout_width="match_parent"
60                    android:layout_height="wrap_content"
61                    android:layout_marginStart="?attr/sudMarginSides"
62                    android:layout_marginEnd="?attr/sudMarginSides" />
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/sudMarginSides"
70                    android:layout_marginEnd="?attr/sudMarginSides"
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.ErrorText"
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/sudMarginSides"
85                    android:layout_marginEnd="?attr/sudMarginSides"
86                    android:layout_marginBottom="24dp"
87                    android:gravity="center_vertical"/>
88            </LinearLayout>
89
90        </ScrollView>
91
92        <com.google.android.setupdesign.view.FillContentLayout
93            style="@style/LockPatternContainerStyle"
94            android:layout_width="0dp"
95            android:layout_height="match_parent"
96            android:layout_weight="1"
97            android:paddingStart="0dp">
98
99            <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
100                android:layout_width="match_parent"
101                android:layout_height="match_parent"
102                android:layout_gravity="center"
103                android:background="@color/lock_pattern_background" />
104
105        </com.google.android.setupdesign.view.FillContentLayout>
106
107    </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
108</com.google.android.setupdesign.GlifLayout>
109