blob: 643d0a68361623c47839bbe6846051a6a4656a96 [file] [log] [blame]
Jian Jin6212e0f2018-03-19 16:22:46 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
davidlne1769ad2018-11-12 09:19:25 -08003 Copyright 2018 The Android Open Source Project
Jian Jin6212e0f2018-03-19 16:22:46 -07004
davidlne1769ad2018-11-12 09:19:25 -08005 Licensed under the Apache License, Version 2.0 (the "License");
Jian Jin6212e0f2018-03-19 16:22:46 -07006 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
davidlne1769ad2018-11-12 09:19:25 -08009 http://www.apache.org/licenses/LICENSE-2.0
Jian Jin6212e0f2018-03-19 16:22:46 -070010
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<LinearLayout
19 xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="match_parent"
21 android:layout_height="match_parent"
Peter Li62e62f22019-10-15 16:24:34 -070022 android:orientation="vertical">
Jian Jin6212e0f2018-03-19 16:22:46 -070023
Jian Jin6212e0f2018-03-19 16:22:46 -070024 <LinearLayout
Peter Li62e62f22019-10-15 16:24:34 -070025 android:layout_width="match_parent"
26 android:layout_height="match_parent"
27 android:layout_marginHorizontal="@dimen/car_ui_margin"
28 android:orientation="horizontal">
Jian Jin6212e0f2018-03-19 16:22:46 -070029
Peter Li62e62f22019-10-15 16:24:34 -070030 <!-- Start side: lock pattern -->
31 <FrameLayout
32 android:layout_width="0dp"
33 android:layout_height="match_parent"
34 android:layout_weight="@integer/content_weight">
Jian Jin23fbd822018-05-08 16:38:00 -070035
Peter Li62e62f22019-10-15 16:24:34 -070036 <com.android.car.settings.security.PinPadView
37 android:id="@+id/pin_pad"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:layout_gravity="center"
41 android:columnCount="3"/>
42 </FrameLayout>
43
44 <!-- End side: pin entry field and messages -->
45 <LinearLayout
46 android:layout_width="0dp"
Jian Jin6212e0f2018-03-19 16:22:46 -070047 android:layout_height="wrap_content"
Peter Li62e62f22019-10-15 16:24:34 -070048 android:layout_gravity="center_vertical"
49 android:layout_weight="@integer/illustration_weight"
davidlne1769ad2018-11-12 09:19:25 -080050 android:gravity="center"
Peter Li62e62f22019-10-15 16:24:34 -070051 android:orientation="vertical">
Jian Jin6212e0f2018-03-19 16:22:46 -070052
Peter Li62e62f22019-10-15 16:24:34 -070053 <ImageView
54 android:layout_width="@dimen/icon_size"
55 android:layout_height="@dimen/icon_size"
56 android:src="@drawable/ic_lock"/>
Jian Jin6212e0f2018-03-19 16:22:46 -070057
Peter Li62e62f22019-10-15 16:24:34 -070058 <TextView
59 android:id="@+id/title_text"
60 android:layout_width="match_parent"
61 android:layout_height="wrap_content"
62 android:layout_marginBottom="@dimen/choose_pin_title_text_margin_bottom"
63 android:gravity="center"
64 android:text="@string/lockscreen_choose_your_pin"
65 android:textAppearance="?android:attr/textAppearanceLarge"/>
Jian Jin6212e0f2018-03-19 16:22:46 -070066
Peter Li62e62f22019-10-15 16:24:34 -070067 <EditText
68 android:id="@+id/password_entry"
69 android:layout_width="match_parent"
70 android:layout_height="wrap_content"
71 android:cursorVisible="false"
72 android:focusable="false"
73 android:gravity="center"
74 android:inputType="textPassword"
75 android:maxLines="1"
76 android:paddingHorizontal="@dimen/pin_password_entry_padding_horizontal"
77 android:textAppearance="?android:attr/textAppearanceLarge"/>
78
79 <!-- hint text -->
80 <TextView
81 android:id="@+id/hint_text"
82 android:layout_width="match_parent"
83 android:layout_height="wrap_content"
84 android:gravity="center"
85 android:text="@string/choose_lock_pin_hints"
86 android:textAppearance="?android:attr/textAppearanceMedium"/>
87
88 </LinearLayout>
Jian Jin6212e0f2018-03-19 16:22:46 -070089 </LinearLayout>
90</LinearLayout>