1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2014 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<!-- Used in phone portrait and tablet, as referenced in alias.xml. -->
19<com.google.android.setupdesign.GlifLayout
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    xmlns:settings="http://schemas.android.com/apk/res-auto"
22    android:id="@+id/setup_wizard_layout"
23    android:layout_width="match_parent"
24    android:layout_height="match_parent"
25    android:icon="@drawable/ic_lock"
26    android:layout="@layout/sud_glif_blank_template"
27    settings:sucHeaderText="@string/lockpassword_choose_your_screen_lock_header">
28
29    <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
30        android:id="@+id/topLayout"
31        android:layout_width="match_parent"
32        android:layout_height="match_parent"
33        android:clipChildren="false"
34        android:clipToPadding="false"
35        android:orientation="vertical">
36
37        <LinearLayout
38            style="@style/SudGlifHeaderContainer"
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:orientation="vertical">
42
43            <ImageView
44                android:id="@+id/sud_layout_icon"
45                style="@style/SudGlifIcon"
46                android:layout_width="wrap_content"
47                android:layout_height="wrap_content"
48                android:src="@drawable/ic_lock" />
49
50            <TextView
51                android:id="@+id/suc_layout_title"
52                style="@style/SudGlifHeaderTitle"
53                android:accessibilityLiveRegion="polite"
54                android:layout_width="match_parent"
55                android:layout_height="wrap_content" />
56
57        </LinearLayout>
58
59        <!-- takes up all space above button bar at bottom -->
60        <LinearLayout
61            style="@style/SudContentFrame"
62            android:layout_width="match_parent"
63            android:layout_height="0dip"
64            android:layout_weight="1"
65            android:gravity="center"
66            android:clipChildren="false"
67            android:clipToPadding="false"
68            android:orientation="vertical"
69            android:paddingLeft="0dp"
70            android:paddingRight="0dp">
71
72            <TextView
73                android:id="@+id/sud_layout_description"
74                style="@style/SudDescription.Glif"
75                android:layout_width="match_parent"
76                android:layout_height="wrap_content"
77                android:layout_marginHorizontal="?attr/sudMarginSides"
78                android:minLines="2" />
79
80            <TextView android:id="@+id/headerText"
81                android:layout_width="match_parent"
82                android:layout_height="wrap_content"
83                android:minLines="2"
84                android:gravity="center"
85                android:paddingHorizontal="?attr/sudMarginSides"
86                android:textSize="12sp" />
87
88            <com.google.android.setupdesign.view.FillContentLayout
89                style="@style/LockPatternContainerStyle"
90                android:layout_width="wrap_content"
91                android:layout_height="0dp"
92                android:layout_weight="1">
93
94                <com.android.internal.widget.LockPatternView
95                    android:id="@+id/lockPattern"
96                    android:layout_width="match_parent"
97                    android:layout_height="match_parent"
98                    android:layout_gravity="center" />
99
100            </com.google.android.setupdesign.view.FillContentLayout>
101
102        </LinearLayout>
103
104        <TextView android:id="@+id/footerText"
105            android:layout_width="wrap_content"
106            android:layout_height="wrap_content"
107            android:layout_gravity="center_horizontal"
108            android:minHeight="50dip"
109            android:textSize="14sp"
110            android:visibility="gone"/>
111
112        <Button
113            android:id="@+id/screen_lock_options"
114            style="@style/SudGlifButton.Tertiary"
115            android:layout_width="wrap_content"
116            android:layout_height="wrap_content"
117            android:text="@string/setup_lock_settings_options_button_label"
118            android:visibility="gone" />
119
120    </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
121
122</com.google.android.setupdesign.GlifLayout>
123