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<com.android.systemui.car.keyguard.CarKeyguardPatternView
25    xmlns:android="http://schemas.android.com/apk/res/android"
26    xmlns:app="http://schemas.android.com/apk/res-auto"
27    android:id="@+id/keyguard_pattern_view"
28    android:orientation="horizontal"
29    android:layout_width="match_parent"
30    android:layout_height="match_parent">
31    <androidx.constraintlayout.widget.ConstraintLayout
32        android:id="@+id/pattern_container"
33        android:layout_width="0dp"
34        android:layout_weight="1"
35        android:layout_height="match_parent">
36        <com.android.internal.widget.LockPatternView
37            android:id="@+id/lockPatternView"
38            android:layout_width="@dimen/keyguard_pattern_dimension"
39            android:layout_height="@dimen/keyguard_pattern_dimension"
40            android:layout_marginVertical="@dimen/pin_pattern_pad_margin_vertical"
41            app:layout_constraintLeft_toLeftOf="parent"
42            app:layout_constraintRight_toRightOf="parent"
43            app:layout_constraintTop_toTopOf="parent"
44            app:layout_constraintBottom_toBottomOf="parent"/>
45    </androidx.constraintlayout.widget.ConstraintLayout>
46    <LinearLayout
47        android:id="@+id/pattern_container"
48        android:layout_width="0dp"
49        android:layout_weight="1"
50        android:layout_height="match_parent"
51        android:orientation="vertical"
52        android:gravity="center_vertical">
53        <TextView
54            android:layout_width="match_parent"
55            android:layout_height="wrap_content"
56            android:layout_margin="@*android:dimen/car_padding_2"
57            android:gravity="center"
58            android:textColor="@android:color/white"
59            android:textSize="@*android:dimen/car_body1_size"
60            android:text="@string/car_keyguard_enter_your_pattern" />
61
62        <include layout="@layout/keyguard_message_area" />
63
64        <Button
65            android:id="@+id/cancel_button"
66            android:layout_width="wrap_content"
67            android:layout_height="wrap_content"
68            android:layout_gravity="center"
69            style="@style/KeyguardButton"
70            android:text="@string/cancel"/>
71
72        <include layout="@layout/keyguard_eca"
73            android:id="@+id/keyguard_selector_fade_container"
74            android:layout_width="match_parent"
75            android:layout_height="wrap_content"
76            android:layout_gravity="bottom|center_horizontal"
77            android:gravity="center_horizontal"
78            android:orientation="vertical"
79            android:visibility="gone"/>
80    </LinearLayout>
81</com.android.systemui.car.keyguard.CarKeyguardPatternView>
82