keyguard_face_unlock_view.xml revision 5ecd81154fa039961f65bb4e36d18ac555b0d1d6
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 allows the user to unlock by showing their face.  -->
21<com.android.keyguard.KeyguardFaceUnlockView
22    xmlns:android="http://schemas.android.com/apk/res/android"
23    xmlns:androidprv="http://schemas.android.com/apk/res/com.android.keyguard"
24    android:id="@+id/keyguard_face_unlock_view"
25    android:orientation="vertical"
26    android:layout_width="match_parent"
27    android:layout_height="match_parent"
28    androidprv:layout_maxWidth="@dimen/keyguard_security_width"
29    androidprv:layout_maxHeight="@dimen/keyguard_security_height"
30    android:contentDescription="@string/keyguard_accessibility_face_unlock">
31
32    <include layout="@layout/keyguard_message_area"
33        android:layout_width="match_parent"
34        android:layout_height="wrap_content"
35        />
36
37    <FrameLayout
38       android:id="@+id/keyguard_bouncer_frame"
39       android:background="@drawable/kg_bouncer_bg_white"
40       android:layout_width="match_parent"
41       android:layout_height="0dp"
42       android:layout_weight="1"
43       >
44       <com.android.internal.widget.FaceUnlockView
45           android:id="@+id/face_unlock_area_view"
46           android:layout_width="match_parent"
47           android:layout_height="match_parent"
48           android:layout_gravity="center_horizontal"
49           android:background="@drawable/intro_bg"
50           android:gravity="center">
51
52           <View
53               android:id="@+id/spotlightMask"
54               android:layout_width="match_parent"
55               android:layout_height="match_parent"
56               android:background="@color/facelock_spotlight_mask"
57           />
58
59           <ImageButton
60               android:id="@+id/face_unlock_cancel_button"
61               android:layout_width="wrap_content"
62               android:layout_height="wrap_content"
63               android:padding="5dip"
64               android:layout_alignParentTop="true"
65               android:layout_alignParentEnd="true"
66               android:background="#00000000"
67               android:src="@drawable/ic_facial_backup"
68           />
69       </com.android.internal.widget.FaceUnlockView>
70    </FrameLayout>
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:gravity="center_horizontal" />
79</com.android.keyguard.KeyguardFaceUnlockView>
80