1<?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-->
16<FrameLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="match_parent"
19    android:layout_height="match_parent"
20    android:importantForAutofill="noExcludeDescendants">
21
22    <include layout="@layout/confirm_lock_background_base" />
23
24    <LinearLayout
25        android:id="@+id/topLayout"
26        android:orientation="vertical"
27        android:layout_width="match_parent"
28        android:layout_height="match_parent">
29
30        <TextView
31            style="@*android:style/TextAppearance.DeviceDefault.Title"
32            android:id="@+id/headerText"
33            android:layout_marginStart="24dp"
34            android:layout_marginEnd="24dp"
35            android:layout_marginTop="12dp"
36            android:layout_width="wrap_content"
37            android:layout_height="wrap_content"
38            android:textColor="?android:attr/colorAccent"/>
39
40        <TextView
41            style="@*android:style/TextAppearance.DeviceDefault.Body1"
42            android:id="@+id/sud_layout_description"
43            android:layout_marginStart="24dp"
44            android:layout_marginEnd="24dp"
45            android:layout_marginTop="8dp"
46            android:layout_width="wrap_content"
47            android:layout_height="wrap_content"/>
48
49        <FrameLayout
50            android:layout_width="match_parent"
51            android:layout_height="0dp"
52            android:layout_weight="1">
53
54            <Button
55                style="@android:style/Widget.Material.Button.Borderless"
56                android:id="@+id/cancelButton"
57                android:layout_width="wrap_content"
58                android:layout_height="wrap_content"
59                android:layout_gravity="start|bottom"
60                android:text="@string/cancel"
61                android:layout_marginStart="8dp"
62                android:layout_marginEnd="8dp"
63                android:layout_marginBottom="14dp"/>
64
65            <LinearLayout
66                android:layout_width="match_parent"
67                android:layout_height="wrap_content"
68                android:layout_gravity="center_vertical"
69                android:gravity="center_horizontal"
70                android:orientation="vertical">
71
72                <com.android.settings.widget.ScrollToParentEditText
73                    android:id="@+id/password_entry"
74                    android:layout_width="208dp"
75                    android:layout_height="wrap_content"
76                    android:inputType="textPassword"
77                    android:imeOptions="actionNext|flagNoFullscreen|flagForceAscii"
78                    android:gravity="center"
79                    style="@style/TextAppearance.PasswordEntry"/>
80
81                <TextView style="@style/TextAppearance.ErrorText"
82                    android:accessibilityLiveRegion="polite"
83                    android:id="@+id/errorText"
84                    android:layout_width="wrap_content"
85                    android:layout_height="wrap_content"
86                    android:layout_marginBottom="10dp"/>
87
88            </LinearLayout>
89
90        </FrameLayout>
91
92    </LinearLayout>
93</FrameLayout>