1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2008, 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<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
21    xmlns:android="http://schemas.android.com/apk/res/android"
22    android:orientation="vertical"
23    android:layout_width="match_parent"
24    android:layout_height="match_parent">
25
26    <!-- top: status -->
27    <RelativeLayout
28        android:layout_height="0dip"
29        android:layout_weight="0.40"
30        android:layout_width="match_parent"
31        android:gravity="center">
32
33        <RelativeLayout android:id="@+id/transport_bg_protect"
34            android:layout_width="512dip"
35            android:layout_height="wrap_content"
36            android:gravity="center">
37
38            <!-- Status -->
39            <include layout="@layout/keyguard_screen_status_land"
40                android:layout_width="wrap_content"
41                android:layout_height="wrap_content"
42                android:layout_marginStart="50dip"
43                android:layout_marginTop="50dip"
44                android:layout_marginEnd="64dip"
45                android:layout_alignParentTop="true"
46                android:layout_alignParentStart="true"/>
47
48            <!-- Music transport control -->
49            <include android:id="@+id/transport"
50                layout="@layout/keyguard_transport_control"
51                android:layout_row="0"
52                android:layout_column="0"
53                android:layout_rowSpan="3"
54                android:layout_columnSpan="1"
55                android:layout_gravity="fill"
56                android:layout_width="match_parent"
57                android:layout_height="512dip"
58                />
59
60        </RelativeLayout>
61
62    </RelativeLayout>
63
64    <!-- bottom: lock pattern, emergency dialer and forgot pattern button -->
65    <RelativeLayout
66        android:layout_weight="0.60"
67        android:layout_width="match_parent"
68        android:layout_height="0dip"
69        android:gravity="center">
70
71        <RelativeLayout
72            android:layout_width="wrap_content"
73            android:layout_height="wrap_content"
74            android:layout_centerInParent="true"
75            android:gravity="center">
76
77            <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
78                android:layout_width="354dip"
79                android:layout_height="354dip"
80            />
81
82            <!-- Emergency and forgot pattern buttons. -->
83            <LinearLayout
84                android:layout_width="match_parent"
85                android:layout_height="wrap_content"
86                android:orientation="horizontal"
87                android:layout_below="@id/lockPattern"
88                android:layout_alignStart="@id/lockPattern"
89                android:layout_alignEnd="@id/lockPattern"
90                style="?android:attr/buttonBarStyle"
91                android:gravity="center"
92                android:weightSum="2">
93
94                <Button android:id="@+id/forgotPatternButton"
95                    android:layout_width="wrap_content"
96                    android:layout_height="wrap_content"
97                    android:layout_gravity="center"
98                    style="?android:attr/buttonBarButtonStyle"
99                    android:drawableLeft="@drawable/lockscreen_forgot_password_button"
100                    android:drawablePadding="8dip"
101                    android:text="@string/lockscreen_forgot_pattern_button_text"
102                    android:visibility="gone"
103                />
104
105                <Button android:id="@+id/emergencyCallButton"
106                    android:layout_width="wrap_content"
107                    android:layout_height="wrap_content"
108                    android:layout_gravity="center"
109                    style="?android:attr/buttonBarButtonStyle"
110                    android:drawableLeft="@drawable/ic_emergency"
111                    android:drawablePadding="8dip"
112                    android:text="@string/lockscreen_emergency_call"
113                    android:visibility="gone"
114                />
115
116            </LinearLayout>
117
118        </RelativeLayout>
119
120        <!-- Area to overlay FaceLock -->
121        <RelativeLayout
122            android:id="@+id/face_unlock_area_view"
123            android:visibility="invisible"
124            android:layout_width="440dip"
125            android:layout_height="440dip"
126            android:layout_centerInParent="true"
127            android:background="@drawable/intro_bg">
128
129            <View
130               android:id="@+id/spotlightMask"
131               android:layout_width="match_parent"
132               android:layout_height="match_parent"
133               android:background="@color/facelock_spotlight_mask"
134            />
135
136            <ImageView
137                android:id="@+id/cancel_button"
138                android:layout_width="wrap_content"
139                android:layout_height="wrap_content"
140                android:padding="5dip"
141                android:layout_alignParentTop="true"
142                android:layout_alignParentEnd="true"
143                android:src="@drawable/ic_facial_backup"
144            />
145
146        </RelativeLayout>
147
148    </RelativeLayout>
149
150</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
151