• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2012, 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<!-- This is the screen that shows the 9 circle unlock widget and instructs
21     the user how to unlock their device, or make an emergency call.  This
22     is the portrait layout.  -->
23<com.android.keyguard.KeyguardPatternView
24    xmlns:android="http://schemas.android.com/apk/res/android"
25    xmlns:androidprv="http://schemas.android.com/apk/res-auto"
26    android:id="@+id/keyguard_pattern_view"
27    android:orientation="vertical"
28    android:layout_width="match_parent"
29    android:layout_height="match_parent"
30    androidprv:layout_maxWidth="@dimen/biometric_auth_pattern_view_max_size"
31    android:layout_gravity="center_horizontal|bottom"
32    android:clipChildren="false"
33    android:clipToPadding="false">
34    <include layout="@layout/keyguard_bouncer_message_area"/>
35
36    <com.android.systemui.bouncer.ui.BouncerMessageView
37        android:id="@+id/bouncer_message_view"
38        android:screenReaderFocusable="true"
39        android:accessibilityLiveRegion="polite"
40        android:layout_width="match_parent"
41        android:layout_height="wrap_content"
42        android:orientation="vertical" />
43
44    <androidx.constraintlayout.widget.ConstraintLayout
45        android:id="@+id/pattern_container"
46        android:layout_width="match_parent"
47        android:layout_height="0dp"
48        android:layout_marginBottom="8dp"
49        android:layout_weight="1"
50        android:layoutDirection="ltr">
51        <androidx.constraintlayout.widget.Guideline
52            android:id="@+id/pattern_top_guideline"
53            android:layout_width="wrap_content"
54            android:layout_height="wrap_content"
55            androidprv:layout_constraintGuide_percent="0"
56            android:orientation="horizontal" />
57
58        <com.android.internal.widget.LockPatternView
59            android:id="@+id/lockPatternView"
60            android:layout_width="0dp"
61            android:layout_height="0dp"
62            android:focusable="false"
63            androidprv:layout_constraintTop_toBottomOf="@id/pattern_top_guideline"
64            androidprv:layout_constraintBottom_toBottomOf="parent"
65            androidprv:layout_constraintLeft_toLeftOf="parent"
66            androidprv:layout_constraintRight_toRightOf="parent"
67            androidprv:layout_constraintDimensionRatio="1.0"
68            androidprv:layout_constraintVertical_bias="1.0"
69            />
70    </androidx.constraintlayout.widget.ConstraintLayout>
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:orientation="vertical"
77        android:layout_gravity="bottom|center_horizontal"
78        android:layout_marginTop="@dimen/keyguard_eca_top_margin"
79        android:layout_marginBottom="@dimen/keyguard_eca_bottom_margin"
80        android:gravity="center_horizontal" />
81
82</com.android.keyguard.KeyguardPatternView>
83