OSDN Git Service

05bd4a059cb36c6ff57fd42aa748278c321c8a12
[android-x86/packages-apps-Settings.git] / res / layout / confirm_lock_password_normal.xml
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.android.setupwizardlib.GlifLayout
17     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"
22     android:importantForAutofill="noExcludeDescendants">
23
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
30         <TextView
31             android:id="@+id/detailsText"
32             style="@style/SuwDescription.Glif"
33             android:layout_width="match_parent"
34             android:layout_height="wrap_content"
35             android:layout_marginStart="?attr/suwMarginSides"
36             android:layout_marginEnd="?attr/suwMarginSides" />
37
38         <Space
39             android:layout_width="match_parent"
40             android:layout_height="0dp"
41             android:layout_weight="1" />
42
43         <LinearLayout
44             android:layout_width="match_parent"
45             android:layout_height="wrap_content"
46             android:gravity="center_horizontal"
47             android:orientation="vertical">
48
49             <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"
57                 style="@style/TextAppearance.PasswordEntry"/>
58
59             <TextView
60                 android:id="@+id/errorText"
61                 style="@style/TextAppearance.ConfirmDeviceCredentialsErrorText"
62                 android:layout_width="wrap_content"
63                 android:layout_height="wrap_content"
64                 android:accessibilityLiveRegion="polite"/>
65
66         </LinearLayout>
67
68         <Space
69             android:layout_width="match_parent"
70             android:layout_height="0dp"
71             android:layout_weight="1" />
72
73         <ImageView
74             android:id="@+id/fingerprintIcon"
75             android:layout_gravity="center_horizontal"
76             android:layout_width="wrap_content"
77             android:layout_height="wrap_content"
78             android:layout_alignParentBottom="true"
79             android:layout_marginBottom="24dp"
80             android:contentDescription="@string/confirm_fingerprint_icon_content_description"
81             android:visibility="gone"/>
82
83         <Button
84             android:id="@+id/cancelButton"
85             style="@style/SuwGlifButton.Secondary"
86             android:layout_width="wrap_content"
87             android:layout_height="wrap_content"
88             android:layout_marginStart="?attr/suwMarginSides"
89             android:layout_marginEnd="?attr/suwMarginSides"
90             android:layout_marginBottom="80dp"
91             android:layout_gravity="center_horizontal"
92             android:text="@string/cancel" />
93
94     </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
95 </com.android.setupwizardlib.GlifLayout>