• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    android:id="@+id/settings_content_focus_area"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:orientation="vertical">
24
25    <LinearLayout
26        android:layout_width="match_parent"
27        android:layout_height="match_parent"
28        android:layout_marginHorizontal="@dimen/car_ui_margin"
29        android:orientation="horizontal">
30
31        <FrameLayout
32            android:layout_width="0dp"
33            android:layout_height="match_parent"
34            android:layout_weight="@integer/content_weight">
35
36            <EditText
37                android:id="@+id/password_entry"
38                android:layout_width="match_parent"
39                android:layout_height="wrap_content"
40                android:layout_gravity="center_vertical"
41                android:focusableInTouchMode="true"
42                android:hint="@string/security_lock_password"
43                android:imeOptions="actionDone|flagNoExtractUi|flagForceAscii"
44                android:inputType="textPassword"
45                android:maxLines="1"
46                android:paddingHorizontal="@dimen/pin_password_entry_padding_horizontal"
47                android:textAppearance="?android:attr/textAppearanceMedium"/>
48
49        </FrameLayout>
50
51        <LinearLayout
52            android:layout_width="0dp"
53            android:layout_height="match_parent"
54            android:layout_weight="@integer/illustration_weight"
55            android:gravity="center"
56            android:orientation="vertical">
57
58            <ImageView
59                android:layout_width="@dimen/icon_size"
60                android:layout_height="@dimen/icon_size"
61                android:src="@drawable/ic_lock"/>
62
63            <TextView
64                android:id="@+id/title_text"
65                android:layout_width="match_parent"
66                android:layout_height="wrap_content"
67                android:layout_marginBottom="@dimen/choose_title_text_margin_bottom"
68                android:gravity="center"
69                android:text="@string/lockscreen_choose_your_password"
70                android:textAppearance="?android:attr/textAppearanceLarge"/>
71
72            <TextView
73                android:id="@+id/hint_text"
74                android:layout_width="match_parent"
75                android:layout_height="wrap_content"
76                android:paddingStart="@dimen/lock_hint_padding"
77                android:paddingEnd="@dimen/lock_hint_padding"
78                android:minHeight="@dimen/lock_hint_min_height"
79                android:gravity="center_horizontal"
80                android:text="@string/choose_lock_password_hints"
81                android:textAppearance="@style/TextAppearance.CarUi.Body3"
82                android:textColor="@color/secondary_text_color"/>
83
84        </LinearLayout>
85    </LinearLayout>
86</com.android.car.ui.FocusArea>
87