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