• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:textAppearance="?oemTextAppearanceTitleLarge"
50            android:text="@string/car_keyguard_enter_your_pattern"
51            app:layout_constraintStart_toStartOf="parent"
52            app:layout_constraintEnd_toEndOf="parent"
53            app:layout_constraintTop_toTopOf="parent"
54            app:layout_constraintBottom_toTopOf="@id/bouncer_message_area"/>
55
56        <include
57            android:layout_width="wrap_content"
58            android:layout_height="wrap_content"
59            layout="@layout/keyguard_message_area"
60            app:layout_constraintStart_toStartOf="parent"
61            app:layout_constraintEnd_toEndOf="parent"
62            app:layout_constraintTop_toBottomOf="@id/pattern_prompt"
63            app:layout_constraintBottom_toTopOf="@id/lockPatternView"/>
64
65        <com.android.internal.widget.LockPatternView
66            android:id="@+id/lockPatternView"
67            android:layout_width="@dimen/keyguard_pattern_dimension"
68            android:layout_height="@dimen/keyguard_pattern_dimension"
69            android:layout_marginVertical="@dimen/pin_pattern_pad_margin_vertical"
70            android:layout_gravity="center_horizontal"
71            app:layout_constraintStart_toStartOf="parent"
72            app:layout_constraintEnd_toEndOf="parent"
73            app:layout_constraintTop_toBottomOf="@id/bouncer_message_area"
74            app:layout_constraintBottom_toTopOf="@id/cancel_button"
75            android:gravity="center" />
76
77        <Button
78            android:id="@+id/cancel_button"
79            android:layout_width="wrap_content"
80            android:layout_height="wrap_content"
81            style="@style/KeyguardButton"
82            android:text="@string/cancel"
83            app:layout_constraintStart_toStartOf="parent"
84            app:layout_constraintEnd_toEndOf="parent"
85            app:layout_constraintTop_toBottomOf="@id/lockPatternView"/>
86
87      <include layout="@layout/keyguard_eca"
88          android:id="@+id/keyguard_selector_fade_container"
89          android:layout_width="match_parent"
90          android:layout_height="wrap_content"
91          android:orientation="vertical"
92          android:layout_gravity="bottom|center_horizontal"
93          android:gravity="center_horizontal"
94          android:visibility="gone" />
95    </androidx.constraintlayout.widget.ConstraintLayout>
96</com.android.systemui.car.keyguard.CarKeyguardPatternView>
97