1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright 2018 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 18<com.android.car.ui.FocusArea 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:id="@+id/settings_content_focus_area" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:orientation="vertical"> 25 26 <androidx.constraintlayout.widget.ConstraintLayout 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 android:layout_marginHorizontal="@dimen/car_ui_margin"> 30 31 <EditText 32 android:id="@+id/password_entry" 33 android:layout_width="0dp" 34 android:layout_height="wrap_content" 35 android:focusableInTouchMode="true" 36 android:hint="@string/security_lock_password" 37 android:autofillHints="password" 38 android:textAlignment="viewStart" 39 android:imeOptions="actionDone|flagNoExtractUi|flagForceAscii" 40 android:inputType="textPassword" 41 android:maxLines="1" 42 android:paddingHorizontal="@dimen/pin_password_entry_padding_horizontal" 43 android:textAppearance="?android:attr/textAppearanceMedium" 44 app:layout_constraintBottom_toBottomOf="parent" 45 app:layout_constraintEnd_toStartOf="@+id/vertical_guideline" 46 app:layout_constraintStart_toStartOf="parent" 47 app:layout_constraintTop_toTopOf="parent" /> 48 49 <androidx.constraintlayout.widget.Guideline 50 android:id="@+id/vertical_guideline" 51 android:layout_width="wrap_content" 52 android:layout_height="wrap_content" 53 android:orientation="vertical" 54 app:layout_constraintGuide_percent="@dimen/password_content_weight_percent"/> 55 56 <ImageView 57 android:id="@+id/icon" 58 android:layout_width="@dimen/icon_size" 59 android:layout_height="@dimen/icon_size" 60 android:src="@drawable/ic_lock" 61 app:layout_constraintBottom_toTopOf="@+id/title_text" 62 app:layout_constraintEnd_toEndOf="parent" 63 app:layout_constraintStart_toStartOf="@+id/vertical_guideline" 64 app:layout_constraintTop_toTopOf="parent" 65 app:layout_constraintVertical_chainStyle="packed"/> 66 67 <TextView 68 android:id="@+id/title_text" 69 android:layout_width="0dp" 70 android:layout_height="wrap_content" 71 android:layout_marginBottom="@dimen/choose_title_text_margin_bottom" 72 android:gravity="center" 73 android:text="@string/lockscreen_choose_your_password" 74 android:textAppearance="?android:attr/textAppearanceLarge" 75 app:layout_constraintBottom_toTopOf="@+id/hint_text" 76 app:layout_constraintEnd_toEndOf="parent" 77 app:layout_constraintStart_toStartOf="@+id/vertical_guideline" 78 app:layout_constraintTop_toBottomOf="@+id/icon"/> 79 80 <TextView 81 android:id="@+id/hint_text" 82 android:layout_width="0dp" 83 android:layout_height="wrap_content" 84 android:gravity="center_horizontal" 85 android:minHeight="@dimen/lock_hint_min_height" 86 android:paddingStart="@dimen/lock_hint_padding" 87 android:paddingEnd="@dimen/lock_hint_padding" 88 android:text="@string/choose_lock_password_hints" 89 android:textAppearance="@style/TextAppearance.CarUi.Body3" 90 android:textColor="@color/secondary_text_color" 91 app:layout_constraintBottom_toBottomOf="parent" 92 app:layout_constraintEnd_toEndOf="parent" 93 app:layout_constraintStart_toStartOf="@+id/vertical_guideline" 94 app:layout_constraintTop_toBottomOf="@+id/title_text"/> 95 </androidx.constraintlayout.widget.ConstraintLayout> 96</com.android.car.ui.FocusArea> 97