• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 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    android:layout="@layout/sud_glif_blank_template">
23
24    <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
25        android:id="@+id/topLayout"
26        android:orientation="horizontal"
27        android:layout_width="match_parent"
28        android:layout_height="match_parent">
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_enterprise" />
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                    android:id="@+id/sud_layout_description"
58                    style="@style/SudDescription.Glif"
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                <Button
74                    android:id="@+id/forgotButton"
75                    style="@style/SudGlifButton.Secondary"
76                    android:layout_width="wrap_content"
77                    android:layout_height="wrap_content"
78                    android:layout_marginStart="?attr/sudMarginSides"
79                    android:layout_marginEnd="?attr/sudMarginSides"
80                    android:layout_gravity="center"
81                    android:visibility="gone" />
82
83                <Space
84                    android:layout_width="match_parent"
85                    android:layout_height="0dp"
86                    android:layout_weight="1" />
87
88                <TextView
89                    style="@style/TextAppearance.ErrorText"
90                    android:accessibilityLiveRegion="polite"
91                    android:id="@+id/errorText"
92                    android:layout_width="wrap_content"
93                    android:layout_height="wrap_content"
94                    android:layout_marginStart="?attr/sudMarginSides"
95                    android:layout_marginEnd="?attr/sudMarginSides"
96                    android:layout_marginBottom="24dp"
97                    android:gravity="center_vertical"/>
98
99            </LinearLayout>
100
101        </ScrollView>
102
103        <com.google.android.setupdesign.view.FillContentLayout
104            style="@style/LockPatternContainerStyle"
105            android:layout_width="0dp"
106            android:layout_height="match_parent"
107            android:layout_weight="1"
108            android:paddingStart="0dp">
109
110            <com.android.internal.widget.LockPatternView
111                android:id="@+id/lockPattern"
112                android:layout_width="match_parent"
113                android:layout_height="match_parent"
114                android:layout_gravity="center" />
115
116        </com.google.android.setupdesign.view.FillContentLayout>
117
118    </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
119</com.google.android.setupdesign.GlifLayout>
120
121