keyguard_screen_unlock_landscape.xml revision 0d244193bed0c995e2beaff5e217200457b28b9d
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 --> 31 <RelativeLayout 32 android:layout_height="match_parent" 33 android:layout_weight="1" 34 android:layout_width="0dip"> 35 36 <include layout="@layout/keyguard_screen_status_land" 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:layout_marginLeft="102dip" 40 android:layout_marginTop="320dip" 41 android:layout_alignParentTop="true" 42 android:layout_alignParentLeft="true"/> 43 44 </RelativeLayout> 45 46 <!-- right side: lock pattern --> 47 <RelativeLayout 48 android:layout_weight="1" 49 android:layout_width="0dip" 50 android:layout_height="match_parent" 51 android:gravity="center_vertical|center_horizontal"> 52 53 <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" 54 android:layout_width="354dip" 55 android:layout_height="354dip" 56 android:layout_gravity="center_vertical" 57 /> 58 59 <!-- Emergency and forgot pattern buttons. --> 60 <LinearLayout 61 android:layout_width="match_parent" 62 android:layout_height="wrap_content" 63 android:layout_below="@id/lockPattern" 64 android:layout_alignLeft="@id/lockPattern" 65 android:layout_alignRight="@id/lockPattern" 66 android:layout_marginTop="28dip" 67 android:layout_marginLeft="28dip" 68 android:layout_marginRight="28dip" 69 android:orientation="horizontal"> 70 71 <Button android:id="@+id/forgotPatternButton" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:layout_gravity="center" 75 style="@style/Widget.Button.Transparent" 76 android:drawableLeft="@drawable/ic_emergency" 77 android:drawablePadding="8dip" 78 android:text="@string/lockscreen_forgot_pattern_button_text" 79 android:visibility="gone" 80 /> 81 82 <Button android:id="@+id/emergencyCallButton" 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:layout_gravity="center" 86 style="@style/Widget.Button.Transparent" 87 android:drawableLeft="@drawable/ic_emergency" 88 android:drawablePadding="8dip" 89 android:text="@string/lockscreen_emergency_call" 90 android:visibility="gone" 91 /> 92 93 </LinearLayout> 94 95 </RelativeLayout> 96 97</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> 98