1<?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-->
16<com.google.android.setupdesign.GlifLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19    android:id="@+id/setup_wizard_layout"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:icon="@drawable/ic_lock"
23    android:importantForAutofill="noExcludeDescendants"
24    app:sudUseBottomProgressBar="true">
25
26    <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
27        android:id="@+id/topLayout"
28        android:orientation="vertical"
29        android:layout_width="match_parent"
30        android:layout_height="match_parent">
31
32        <Space
33            android:layout_width="match_parent"
34            android:layout_height="0dp"
35            android:layout_weight="1" />
36
37        <LinearLayout
38            android:layout_width="match_parent"
39            android:layout_height="wrap_content"
40            android:gravity="center_horizontal"
41            android:orientation="vertical">
42
43            <com.android.settings.widget.ScrollToParentEditText
44                android:id="@+id/password_entry"
45                android:layout_width="208dp"
46                android:layout_height="wrap_content"
47                android:layout_gravity="center_horizontal"
48                android:inputType="textPassword"
49                android:imeOptions="actionNext|flagForceAscii|flagNoExtractUi"
50                android:gravity="center"
51                style="@style/TextAppearance.PasswordEntry"/>
52
53            <TextView
54                android:id="@+id/errorText"
55                style="@style/TextAppearance.ErrorText"
56                android:layout_width="wrap_content"
57                android:layout_height="wrap_content"
58                android:layout_marginTop="8dp"
59                android:layout_marginStart="12dp"
60                android:layout_marginEnd="12dp"
61                android:accessibilityLiveRegion="polite"/>
62
63        </LinearLayout>
64
65        <Space
66            android:layout_width="match_parent"
67            android:layout_height="0dp"
68            android:layout_weight="1" />
69
70        <CheckBox
71            android:id="@+id/checkbox"
72            android:layout_width="wrap_content"
73            android:layout_height="wrap_content"
74            android:minHeight="48dp"
75            android:layout_marginStart="?attr/sudMarginStart"
76            android:layout_marginEnd="?attr/sudMarginEnd"
77            android:layout_marginTop="12dp"
78            android:layout_gravity="center_horizontal"
79            android:visibility="gone"
80            android:checked="true" />
81
82        <Button
83            android:id="@+id/cancelButton"
84            style="@style/SudGlifButton.Secondary"
85            android:layout_width="wrap_content"
86            android:layout_height="wrap_content"
87            android:layout_marginStart="?attr/sudMarginStart"
88            android:layout_marginEnd="?attr/sudMarginEnd"
89            android:layout_marginBottom="80dp"
90            android:layout_gravity="center_horizontal"
91            android:text="@string/cancel" />
92
93        <Button
94            android:id="@+id/emergencyCallButton"
95            style="@style/WorkChallengeEmergencyButtonStyle"
96            android:layout_width="wrap_content"
97            android:layout_height="wrap_content"
98            android:layout_marginStart="?attr/sudMarginStart"
99            android:layout_marginEnd="?attr/sudMarginEnd"
100            android:layout_marginBottom="12dp"
101            android:visibility="gone"
102            android:layout_gravity="center_horizontal"
103            android:text="@string/work_challenge_emergency_button_text"/>
104
105    </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
106</com.google.android.setupdesign.GlifLayout>
107