blob: a0935bf55a8b09400bd3f8f95237f80d13b9d8a4 [file] [log] [blame]
Jorim Jaggi8a09b612015-04-06 17:47:18 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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-->
Alex Johnston7868acf2019-12-09 12:52:14 +000016<com.google.android.setupdesign.GlifLayout
Jorim Jaggi8a09b612015-04-06 17:47:18 -070017 xmlns:android="http://schemas.android.com/apk/res/android"
Alex Johnston7868acf2019-12-09 12:52:14 +000018 android:id="@+id/setup_wizard_layout"
Benjamin Franz194300d2016-01-13 12:16:25 +000019 android:layout_width="match_parent"
Fan Zhang1c782422017-04-21 17:03:18 -070020 android:layout_height="match_parent"
Alex Johnston7868acf2019-12-09 12:52:14 +000021 android:icon="@drawable/ic_enterprise"
22 android:layout="@layout/sud_glif_blank_template">
Jorim Jaggi8a09b612015-04-06 17:47:18 -070023
Benjamin Franz194300d2016-01-13 12:16:25 +000024 <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
Benjamin Franz194300d2016-01-13 12:16:25 +000025 android:id="@+id/topLayout"
26 android:orientation="vertical"
Alex Johnston7868acf2019-12-09 12:52:14 +000027 android:layout_width="match_parent"
28 android:layout_height="match_parent">
Jorim Jaggi8a09b612015-04-06 17:47:18 -070029
Alex Johnston7868acf2019-12-09 12:52:14 +000030 <LinearLayout
31 android:layout_width="match_parent"
Benjamin Franz194300d2016-01-13 12:16:25 +000032 android:layout_height="wrap_content"
Alex Johnston7868acf2019-12-09 12:52:14 +000033 android:orientation="vertical">
Jorim Jaggi8a09b612015-04-06 17:47:18 -070034
Alex Johnston7868acf2019-12-09 12:52:14 +000035 <ImageView
36 android:id="@+id/sud_layout_icon"
37 style="@style/SudGlifIcon"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:layout_gravity="?attr/sudGlifHeaderGravity"
41 android:src="@drawable/ic_enterprise" />
Jorim Jaggi8a09b612015-04-06 17:47:18 -070042
Alex Johnston7868acf2019-12-09 12:52:14 +000043 <TextView
44 android:id="@+id/headerText"
45 style="@style/SudGlifHeaderTitle"
46 android:layout_width="match_parent"
47 android:layout_height="wrap_content" />
Jorim Jaggi8a09b612015-04-06 17:47:18 -070048
Alex Johnston7868acf2019-12-09 12:52:14 +000049 <TextView
50 android:id="@+id/sud_layout_description"
51 style="@style/SudDescription.Glif"
52 android:layout_width="match_parent"
53 android:layout_height="wrap_content"
54 android:layout_marginStart="?attr/sudMarginSides"
55 android:layout_marginEnd="?attr/sudMarginSides" />
Pavel Grafov04f783c2020-02-13 21:39:37 +000056
57 <Button
58 android:id="@+id/forgotButton"
59 style="@style/SudGlifButton.Secondary"
60 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
62 android:layout_marginStart="?attr/sudMarginSides"
63 android:layout_marginEnd="?attr/sudMarginSides"
Pavel Grafovc4d99802020-02-20 12:32:57 +000064 android:layout_gravity="center"
65 android:visibility="gone" />
Alex Johnston7868acf2019-12-09 12:52:14 +000066 </LinearLayout>
67
68 <Space
69 android:layout_width="match_parent"
70 android:layout_height="0dp"
71 android:layout_weight="1" />
Jorim Jaggi8a09b612015-04-06 17:47:18 -070072
Maurice Lamc41e4082017-04-27 19:04:46 -070073 <LinearLayout
74 android:layout_width="match_parent"
Benjamin Franz194300d2016-01-13 12:16:25 +000075 android:layout_height="wrap_content"
Maurice Lamc41e4082017-04-27 19:04:46 -070076 android:gravity="center_horizontal"
77 android:orientation="vertical">
Jorim Jaggi8a09b612015-04-06 17:47:18 -070078
Maurice Lamc41e4082017-04-27 19:04:46 -070079 <com.android.settings.widget.ScrollToParentEditText
80 android:id="@+id/password_entry"
81 android:layout_width="208dp"
82 android:layout_height="wrap_content"
Alex Johnston7868acf2019-12-09 12:52:14 +000083 android:layout_gravity="center_horizontal"
Maurice Lamc41e4082017-04-27 19:04:46 -070084 android:inputType="textPassword"
85 android:imeOptions="actionNext|flagNoFullscreen|flagForceAscii"
86 android:gravity="center"
Maurice Lamc41e4082017-04-27 19:04:46 -070087 style="@style/TextAppearance.PasswordEntry"/>
88
89 <TextView
Raff Tsaif6d42a92018-12-26 12:54:05 +080090 style="@style/TextAppearance.ErrorText"
Maurice Lamc41e4082017-04-27 19:04:46 -070091 android:accessibilityLiveRegion="polite"
92 android:id="@+id/errorText"
93 android:layout_width="wrap_content"
94 android:layout_height="wrap_content"
Raff Tsaie8bd78e2019-07-05 10:56:15 +080095 android:layout_marginTop="8dp"
Maurice Lamc41e4082017-04-27 19:04:46 -070096 android:layout_marginStart="12dp"
97 android:layout_marginEnd="12dp"/>
98
99 </LinearLayout>
100
Alex Johnston7868acf2019-12-09 12:52:14 +0000101 <Space
102 android:layout_width="match_parent"
103 android:layout_height="0dp"
104 android:layout_weight="1" />
105
106 <Button
107 android:id="@+id/cancelButton"
108 style="@style/SudGlifButton.Secondary"
109 android:layout_width="wrap_content"
110 android:layout_height="wrap_content"
111 android:layout_marginStart="?attr/sudMarginSides"
112 android:layout_marginEnd="?attr/sudMarginSides"
113 android:layout_marginBottom="80dp"
114 android:layout_gravity="center_horizontal"
115 android:text="@string/cancel" />
116
Benjamin Franz194300d2016-01-13 12:16:25 +0000117 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
Alex Johnston7868acf2019-12-09 12:52:14 +0000118</com.google.android.setupdesign.GlifLayout>