• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2014 The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License")
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16-->
17<com.google.android.setupdesign.GlifLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:settings="http://schemas.android.com/apk/res-auto"
20    android:id="@+id/setup_wizard_layout"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:icon="@drawable/ic_lock"
24    android:importantForAutofill="noExcludeDescendants">
25
26    <LinearLayout
27        style="@style/SudContentFrame"
28        android:layout_width="match_parent"
29        android:layout_height="match_parent"
30        android:clipChildren="false"
31        android:clipToPadding="false"
32        android:gravity="center_horizontal"
33        android:orientation="vertical">
34
35        <TextView
36            android:id="@+id/sud_layout_description"
37            style="@style/SudDescription.Glif"
38            android:layout_width="match_parent"
39            android:layout_height="wrap_content"
40            android:minLines="2"/>
41
42        <LinearLayout
43            android:id="@+id/password_container"
44            android:layout_width="match_parent"
45            android:layout_height="wrap_content"
46            android:layout_marginTop="16dp"
47            android:clipChildren="false"
48            android:clipToPadding="false"
49            android:orientation="vertical"
50            android:layoutMode="opticalBounds"
51            android:paddingBottom="8dp">
52
53            <!-- Password entry field -->
54            <com.android.settings.widget.ScrollToParentEditText
55                android:id="@+id/password_entry"
56                android:layout_width="match_parent"
57                android:layout_height="wrap_content"
58                android:layout_gravity="center"
59                android:gravity="center"
60                android:inputType="textPassword"
61                android:imeOptions="actionNext|flagNoExtractUi|flagForceAscii"
62                style="@style/TextAppearance.PasswordEntry"/>
63
64            <androidx.recyclerview.widget.RecyclerView
65                android:layout_marginTop="8dp"
66                android:id="@+id/password_requirements_view"
67                android:layout_width="match_parent"
68                android:layout_height="wrap_content"/>
69
70        </LinearLayout>
71
72        <Button
73            android:id="@+id/screen_lock_options"
74            style="@style/SudGlifButton.Tertiary"
75            android:layout_width="wrap_content"
76            android:layout_height="wrap_content"
77            android:text="@string/setup_lock_settings_options_button_label"
78            android:visibility="gone" />
79
80    </LinearLayout>
81
82</com.google.android.setupdesign.GlifLayout>
83