1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2018, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License")
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10**     http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17*/
18-->
19
20<!-- Car customizations
21     - Added title "Enter your Pattern" at the top
22     - Hid the emergency call at the bottom
23-->
24
25<com.android.systemui.car.keyguard.CarKeyguardPatternView
26    xmlns:android="http://schemas.android.com/apk/res/android"
27    xmlns:app="http://schemas.android.com/apk/res-auto"
28    android:id="@+id/keyguard_pattern_view"
29    android:layout_width="match_parent"
30    android:layout_height="match_parent"
31    android:layout_gravity="center"
32    android:gravity="center_horizontal"
33    android:orientation="vertical"
34    app:layout_maxWidth="@dimen/keyguard_security_width"
35    app:layout_maxHeight="@dimen/pattern_view_container_maxHeight">
36    <androidx.constraintlayout.widget.ConstraintLayout
37        android:id="@+id/pattern_container"
38        android:layout_height="match_parent"
39        android:layout_width="match_parent"
40        android:orientation="vertical"
41        android:layout_gravity="center">
42
43        <TextView
44            android:id="@+id/pattern_prompt"
45            android:layout_width="wrap_content"
46            android:layout_height="wrap_content"
47            android:layout_margin="@*android:dimen/car_padding_2"
48            android:gravity="center"
49            android:textColor="@android:color/white"
50            android:textSize="@*android:dimen/car_body1_size"
51            android:text="@string/car_keyguard_enter_your_pattern"
52            app:layout_constraintStart_toStartOf="parent"
53            app:layout_constraintEnd_toEndOf="parent"
54            app:layout_constraintTop_toTopOf="parent"
55            app:layout_constraintBottom_toTopOf="@id/bouncer_message_area"/>
56
57        <include
58            android:layout_width="wrap_content"
59            android:layout_height="wrap_content"
60            layout="@layout/keyguard_message_area"
61            app:layout_constraintStart_toStartOf="parent"
62            app:layout_constraintEnd_toEndOf="parent"
63            app:layout_constraintTop_toBottomOf="@id/pattern_prompt"
64            app:layout_constraintBottom_toTopOf="@id/lockPatternView"/>
65
66        <com.android.internal.widget.LockPatternView
67            android:id="@+id/lockPatternView"
68            android:layout_width="@dimen/keyguard_pattern_dimension"
69            android:layout_height="@dimen/keyguard_pattern_dimension"
70            android:layout_marginVertical="@dimen/pin_pattern_pad_margin_vertical"
71            android:layout_gravity="center_horizontal"
72            app:layout_constraintStart_toStartOf="parent"
73            app:layout_constraintEnd_toEndOf="parent"
74            app:layout_constraintTop_toBottomOf="@id/bouncer_message_area"
75            app:layout_constraintBottom_toTopOf="@id/cancel_button"
76            android:gravity="center" />
77
78        <Button
79            android:id="@+id/cancel_button"
80            android:layout_width="wrap_content"
81            android:layout_height="wrap_content"
82            style="@style/KeyguardButton"
83            android:text="@string/cancel"
84            app:layout_constraintStart_toStartOf="parent"
85            app:layout_constraintEnd_toEndOf="parent"
86            app:layout_constraintTop_toBottomOf="@id/lockPatternView"/>
87
88      <include layout="@layout/keyguard_eca"
89          android:id="@+id/keyguard_selector_fade_container"
90          android:layout_width="match_parent"
91          android:layout_height="wrap_content"
92          android:orientation="vertical"
93          android:layout_gravity="bottom|center_horizontal"
94          android:gravity="center_horizontal"
95          android:visibility="gone" />
96    </androidx.constraintlayout.widget.ConstraintLayout>
97</com.android.systemui.car.keyguard.CarKeyguardPatternView>
98