blob: 7e2cf8ed60d2b84c0541f9de722966a9ea1f3ced [file] [log] [blame]
Maurice Lamdaaf8f82017-03-10 15:31:30 -08001<?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-->
Pasty Changc1f86002018-12-11 02:22:55 +000016<com.google.android.setupdesign.GlifLayout
Maurice Lamdaaf8f82017-03-10 15:31:30 -080017 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"
pastychang8d2dc162018-12-21 14:01:18 +080022 android:layout="@layout/sud_glif_blank_template">
Maurice Lamdaaf8f82017-03-10 15:31:30 -080023
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="vertical">
29
Maurice Lam4853cce2017-05-15 12:20:17 -070030 <LinearLayout
Maurice Lamdaaf8f82017-03-10 15:31:30 -080031 android:layout_width="match_parent"
Maurice Lam4853cce2017-05-15 12:20:17 -070032 android:layout_height="wrap_content"
33 android:orientation="vertical">
Maurice Lamdaaf8f82017-03-10 15:31:30 -080034
Maurice Lam4853cce2017-05-15 12:20:17 -070035 <ImageView
Maurice Lam9c2fae82019-03-26 18:50:21 -070036 android:id="@+id/sud_layout_icon"
pastychang79614822019-01-03 10:12:54 +080037 style="@style/SudGlifIcon"
Maurice Lam4853cce2017-05-15 12:20:17 -070038 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
pastychang79614822019-01-03 10:12:54 +080040 android:layout_gravity="?attr/sudGlifHeaderGravity"
Maurice Lam4853cce2017-05-15 12:20:17 -070041 android:src="@drawable/ic_lock" />
42
43 <TextView
44 android:id="@+id/headerText"
pastychang79614822019-01-03 10:12:54 +080045 style="@style/SudGlifHeaderTitle"
Maurice Lamdaaf8f82017-03-10 15:31:30 -080046 android:layout_width="match_parent"
Maurice Lam4853cce2017-05-15 12:20:17 -070047 android:layout_height="wrap_content" />
Maurice Lamdaaf8f82017-03-10 15:31:30 -080048
Maurice Lam4853cce2017-05-15 12:20:17 -070049 <TextView
pastychang79614822019-01-03 10:12:54 +080050 style="@style/SudDescription.Glif"
pastychangfa68ec42019-04-12 16:22:17 +080051 android:id="@+id/sud_layout_description"
Maurice Lam4853cce2017-05-15 12:20:17 -070052 android:layout_width="match_parent"
53 android:layout_height="wrap_content"
pastychang79614822019-01-03 10:12:54 +080054 android:layout_marginStart="?attr/sudMarginSides"
55 android:layout_marginEnd="?attr/sudMarginSides" />
Maurice Lamdaaf8f82017-03-10 15:31:30 -080056
Maurice Lam4853cce2017-05-15 12:20:17 -070057 </LinearLayout>
Maurice Lamdaaf8f82017-03-10 15:31:30 -080058
Kevin Chyne4cfb6a2017-08-21 17:24:52 -070059 <LinearLayout
pastychang79614822019-01-03 10:12:54 +080060 style="@style/SudContentFrame"
Maurice Lamdaaf8f82017-03-10 15:31:30 -080061 android:layout_width="match_parent"
Maurice Lam4853cce2017-05-15 12:20:17 -070062 android:layout_height="wrap_content"
Kevin Chyne4cfb6a2017-08-21 17:24:52 -070063 android:orientation="vertical"
Maurice Lam7efcc352017-09-08 11:57:27 -070064 android:gravity="center"
65 android:paddingLeft="0dp"
66 android:paddingRight="0dp">
Maurice Lamdaaf8f82017-03-10 15:31:30 -080067
Pasty Changc1f86002018-12-11 02:22:55 +000068 <com.google.android.setupdesign.view.FillContentLayout
Maurice Lam7efcc352017-09-08 11:57:27 -070069 style="@style/LockPatternContainerStyle"
70 android:layout_width="wrap_content"
Kevin Chyne4cfb6a2017-08-21 17:24:52 -070071 android:layout_height="0dp"
Maurice Lam7efcc352017-09-08 11:57:27 -070072 android:layout_weight="1">
73
74 <com.android.internal.widget.LockPatternView
75 android:id="@+id/lockPattern"
76 android:layout_width="match_parent"
77 android:layout_height="match_parent"
78 android:layout_gravity="center" />
79
Pasty Changc1f86002018-12-11 02:22:55 +000080 </com.google.android.setupdesign.view.FillContentLayout>
Kevin Chyne4cfb6a2017-08-21 17:24:52 -070081
82 <TextView
Raff Tsaif6d42a92018-12-26 12:54:05 +080083 style="@style/TextAppearance.ErrorText"
Kevin Chyne4cfb6a2017-08-21 17:24:52 -070084 android:accessibilityLiveRegion="polite"
85 android:id="@+id/errorText"
86 android:layout_width="wrap_content"
87 android:layout_height="wrap_content"
88 android:layout_gravity="center_horizontal"
pastychang79614822019-01-03 10:12:54 +080089 android:layout_marginHorizontal="?attr/sudMarginSides"
Kevin Chyne4cfb6a2017-08-21 17:24:52 -070090 android:layout_marginTop="12dp"
Kevin Chyne4cfb6a2017-08-21 17:24:52 -070091 android:gravity="center_vertical"/>
92
Adrian Roosd5e3c382017-09-22 13:28:54 +020093 <Button
94 android:id="@+id/cancelButton"
pastychang79614822019-01-03 10:12:54 +080095 style="@style/SudGlifButton.Secondary"
Adrian Roosd5e3c382017-09-22 13:28:54 +020096 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
pastychang79614822019-01-03 10:12:54 +080098 android:layout_marginStart="?attr/sudMarginSides"
99 android:layout_marginEnd="?attr/sudMarginSides"
Adrian Roosd5e3c382017-09-22 13:28:54 +0200100 android:layout_marginBottom="80dp"
101 android:text="@string/cancel" />
Maurice Lamdaaf8f82017-03-10 15:31:30 -0800102
Adrian Roosd5e3c382017-09-22 13:28:54 +0200103 </LinearLayout>
Maurice Lama857c8d2017-03-29 21:10:15 -0700104
Maurice Lamdaaf8f82017-03-10 15:31:30 -0800105 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
Maurice Lama857c8d2017-03-29 21:10:15 -0700106
Pasty Changc1f86002018-12-11 02:22:55 +0000107</com.google.android.setupdesign.GlifLayout>