1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2015 The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License")
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16-->
17
18<com.google.android.setupdesign.GlifLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:settings="http://schemas.android.com/apk/res-auto"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:icon="@drawable/ic_lock"
24    android:layout="@layout/sud_glif_blank_template"
25    settings:sucHeaderText="@string/lock_settings_picker_title">
26
27    <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
28        android:id="@+id/topLayout"
29        android:clipChildren="false"
30        android:clipToPadding="false"
31        android:orientation="horizontal"
32        android:layout_width="match_parent"
33        android:layout_height="match_parent">
34
35        <!-- left side: instructions and messages -->
36        <LinearLayout
37            android:layout_width="0dip"
38            android:layout_height="match_parent"
39            android:layout_weight="1.0"
40            android:layout_marginStart="?attr/sudMarginSides"
41            android:layout_marginBottom="@dimen/sud_content_frame_padding_bottom"
42            android:clipChildren="false"
43            android:clipToPadding="false"
44            android:orientation="vertical">
45
46            <ScrollView
47                android:id="@+id/scroll_layout_title_header"
48                android:layout_width="match_parent"
49                android:layout_height="0dp"
50                android:layout_weight="1">
51
52                <LinearLayout
53                    android:layout_width="match_parent"
54                    android:layout_height="wrap_content"
55                    android:orientation="vertical">
56
57                    <ImageView
58                        android:id="@+id/sud_layout_icon"
59                        style="@style/SudGlifIcon"
60                        android:layout_width="wrap_content"
61                        android:layout_height="wrap_content"
62                        android:layout_gravity="?attr/sudGlifHeaderGravity"
63                        android:layout_marginStart="0dp"
64                        android:layout_marginEnd="0dp"
65                        android:src="@drawable/ic_lock"/>
66
67                    <TextView
68                        android:id="@+id/suc_layout_title"
69                        style="@style/SudGlifHeaderTitle"
70                        android:layout_width="match_parent"
71                        android:layout_height="wrap_content"
72                        android:layout_marginStart="0dp"
73                        android:layout_marginEnd="0dp"/>
74
75                    <TextView
76                        android:id="@+id/sud_layout_description"
77                        style="@style/SudDescription.Glif"
78                        android:layout_width="match_parent"
79                        android:layout_height="wrap_content"
80                        android:minLines="2" />
81
82                    <!-- header message -->
83                    <TextView
84                        android:id="@+id/headerText"
85                        android:layout_width="match_parent"
86                        android:layout_height="wrap_content"
87                        android:layout_marginTop="10dp"
88                        android:gravity="?attr/sudGlifHeaderGravity"
89                        android:textSize="18sp"/>
90
91                    <TextView android:id="@+id/footerText"
92                        android:layout_width="match_parent"
93                        android:layout_height="wrap_content"
94                        android:layout_centerHorizontal="true"
95                        android:layout_marginTop="10dp"
96                        android:textSize="14sp"
97                        android:visibility="gone" />
98
99                    <Button
100                        android:id="@+id/screen_lock_options"
101                        style="@style/SudGlifButton.Tertiary"
102                        android:layout_width="match_parent"
103                        android:layout_height="wrap_content"
104                        android:layout_marginTop="5dp"
105                        android:gravity="?attr/sudGlifHeaderGravity"
106                        android:text="@string/setup_lock_settings_options_button_label"
107                        android:visibility="gone" />
108
109                </LinearLayout>
110
111            </ScrollView>
112
113        </LinearLayout>
114
115        <!-- right side: lock pattern -->
116        <com.google.android.setupdesign.view.FillContentLayout
117            style="@style/LockPatternContainerStyle"
118            android:layout_width="0dp"
119            android:layout_height="match_parent"
120            android:layout_weight="1.0"
121            android:paddingStart="0dp">
122
123            <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
124                android:layout_width="match_parent"
125                android:layout_height="match_parent"
126                android:layout_gravity="center"
127                android:background="@color/lock_pattern_background" />
128
129        </com.google.android.setupdesign.view.FillContentLayout>
130
131    </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
132
133</com.google.android.setupdesign.GlifLayout>
134