blob: 9021f2428f0c6a9b0b0a0d3c74ed7ecb7d63d6a5 [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"
Fan Zhang1c782422017-04-21 17:03:18 -070022 android:importantForAutofill="noExcludeDescendants">
Maurice Lamdaaf8f82017-03-10 15:31:30 -080023
24 <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
25 android:id="@+id/topLayout"
26 android:orientation="vertical"
27 android:layout_width="match_parent"
28 android:layout_height="match_parent">
29
Maurice Lamdaaf8f82017-03-10 15:31:30 -080030 <TextView
pastychangfa68ec42019-04-12 16:22:17 +080031 android:id="@+id/sud_layout_description"
pastychang79614822019-01-03 10:12:54 +080032 style="@style/SudDescription.Glif"
Maurice Lamdaaf8f82017-03-10 15:31:30 -080033 android:layout_width="match_parent"
34 android:layout_height="wrap_content"
pastychang79614822019-01-03 10:12:54 +080035 android:layout_marginStart="?attr/sudMarginSides"
36 android:layout_marginEnd="?attr/sudMarginSides" />
Maurice Lamdaaf8f82017-03-10 15:31:30 -080037
Maurice Lamdaaf8f82017-03-10 15:31:30 -080038 <Space
39 android:layout_width="match_parent"
40 android:layout_height="0dp"
41 android:layout_weight="1" />
42
Maurice Lamc41e4082017-04-27 19:04:46 -070043 <LinearLayout
44 android:layout_width="match_parent"
Maurice Lamdaaf8f82017-03-10 15:31:30 -080045 android:layout_height="wrap_content"
Maurice Lamc41e4082017-04-27 19:04:46 -070046 android:gravity="center_horizontal"
47 android:orientation="vertical">
Maurice Lamdaaf8f82017-03-10 15:31:30 -080048
Maurice Lamc41e4082017-04-27 19:04:46 -070049 <com.android.settings.widget.ScrollToParentEditText
50 android:id="@+id/password_entry"
51 android:layout_width="208dp"
52 android:layout_height="wrap_content"
53 android:layout_gravity="center_horizontal"
54 android:inputType="textPassword"
55 android:imeOptions="actionNext|flagNoFullscreen|flagForceAscii"
56 android:gravity="center"
Maurice Lamc41e4082017-04-27 19:04:46 -070057 style="@style/TextAppearance.PasswordEntry"/>
58
59 <TextView
60 android:id="@+id/errorText"
Raff Tsaif6d42a92018-12-26 12:54:05 +080061 style="@style/TextAppearance.ErrorText"
Maurice Lamc41e4082017-04-27 19:04:46 -070062 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
Raff Tsaie8bd78e2019-07-05 10:56:15 +080064 android:layout_marginTop="8dp"
65 android:layout_marginStart="12dp"
66 android:layout_marginEnd="12dp"
Maurice Lamc41e4082017-04-27 19:04:46 -070067 android:accessibilityLiveRegion="polite"/>
68
69 </LinearLayout>
70
71 <Space
72 android:layout_width="match_parent"
Maurice Lamdaaf8f82017-03-10 15:31:30 -080073 android:layout_height="0dp"
Maurice Lamc41e4082017-04-27 19:04:46 -070074 android:layout_weight="1" />
Maurice Lamdaaf8f82017-03-10 15:31:30 -080075
Maurice Lam667d6942017-03-29 21:10:15 -070076 <Button
Maurice Lam667d6942017-03-29 21:10:15 -070077 android:id="@+id/cancelButton"
pastychang79614822019-01-03 10:12:54 +080078 style="@style/SudGlifButton.Secondary"
Maurice Lam667d6942017-03-29 21:10:15 -070079 android:layout_width="wrap_content"
80 android:layout_height="wrap_content"
pastychang79614822019-01-03 10:12:54 +080081 android:layout_marginStart="?attr/sudMarginSides"
82 android:layout_marginEnd="?attr/sudMarginSides"
Adrian Roosd5e3c382017-09-22 13:28:54 +020083 android:layout_marginBottom="80dp"
84 android:layout_gravity="center_horizontal"
Maurice Lam667d6942017-03-29 21:10:15 -070085 android:text="@string/cancel" />
86
Maurice Lamdaaf8f82017-03-10 15:31:30 -080087 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
Pasty Changc1f86002018-12-11 02:22:55 +000088</com.google.android.setupdesign.GlifLayout>