1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2019 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 settings:sucHeaderText="@string/lockpassword_choose_your_screen_lock_header"> 26 27 <LinearLayout 28 style="@style/SudContentFrame" 29 android:layout_width="match_parent" 30 android:layout_height="match_parent" 31 android:clipChildren="false" 32 android:clipToPadding="false" 33 android:gravity="center_horizontal" 34 android:orientation="vertical"> 35 36 <TextView 37 android:id="@+id/message" 38 style="@style/SudDescription.Glif" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:minLines="2"/> 42 43 <LinearLayout 44 android:id="@+id/password_container" 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content" 47 android:layout_marginTop="16dp" 48 android:clipChildren="false" 49 android:clipToPadding="false" 50 android:orientation="vertical" 51 android:layoutMode="opticalBounds" 52 android:paddingBottom="8dp"> 53 54 <!-- Password entry field --> 55 <com.android.car.developeroptions.widget.ScrollToParentEditText 56 android:id="@+id/password_entry" 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:layout_gravity="center" 60 android:gravity="center" 61 android:inputType="textPassword" 62 android:imeOptions="actionNext|flagNoExtractUi|flagForceAscii" 63 style="@style/TextAppearance.PasswordEntry"/> 64 65 <androidx.recyclerview.widget.RecyclerView 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