keyguard_pattern_view.xml revision 25a272a9f6323f6a3513bb522d45e839449878ce
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.internal.policy.impl.keyguard.KeyguardPatternView
24    xmlns:android="http://schemas.android.com/apk/res/android"
25    android:id="@+id/keyguard_pattern_view"
26    android:orientation="vertical"
27    android:layout_width="match_parent"
28    android:layout_height="match_parent"
29    android:layout_maxWidth="@dimen/keyguard_security_width"
30    android:layout_maxHeight="@dimen/keyguard_security_height"
31    android:gravity="center_horizontal"
32    android:contentDescription="@string/keyguard_accessibility_pattern_unlock">
33
34    <FrameLayout
35        android:layout_width="match_parent"
36        android:layout_height="match_parent">
37
38        <LinearLayout
39            android:layout_height="wrap_content"
40            android:layout_width="wrap_content"
41            android:orientation="vertical"
42            android:layout_gravity="center">
43
44            <include layout="@layout/keyguard_message_area"
45                android:layout_width="match_parent"
46                android:layout_height="wrap_content"
47               />
48
49          <FrameLayout
50             android:id="@+id/keyguard_bouncer_frame"
51             android:background="@*android:drawable/kg_bouncer_bg_white"
52             android:layout_width="match_parent"
53             android:layout_height="0dp"
54             android:layout_weight="1"
55             >
56            <com.android.internal.widget.LockPatternView
57                android:id="@+id/lockPatternView"
58                android:layout_width="match_parent"
59                android:layout_height="match_parent"
60                android:layout_weight="1"
61                android:layout_marginEnd="8dip"
62                android:layout_marginBottom="4dip"
63                android:layout_marginStart="8dip"
64                android:layout_gravity="center_horizontal"
65                android:gravity="center"
66                android:contentDescription="@string/keyguard_accessibility_pattern_area" />
67          </FrameLayout>
68          <include layout="@layout/keyguard_eca"
69              android:id="@+id/keyguard_selector_fade_container"
70              android:layout_width="match_parent"
71              android:layout_height="wrap_content"
72              android:orientation="vertical"
73              android:layout_gravity="bottom|center_horizontal"
74              android:gravity="center_horizontal" />
75        </LinearLayout>
76    </FrameLayout>
77
78</com.android.internal.policy.impl.keyguard.KeyguardPatternView>
79