keyguard_screen_unlock_portrait.xml revision 9066cfe9886ac131c34d59ed0e2d287b0e3c0087
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<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient 24 xmlns:android="http://schemas.android.com/apk/res/android" 25 android:orientation="vertical" 26 android:layout_width="wrap_content" 27 android:layout_height="fill_parent" 28 android:background="#A0000000" 29 > 30 31 <!-- lock icon and header message --> 32 <LinearLayout 33 android:orientation="horizontal" 34 android:layout_width="fill_parent" 35 android:layout_height="0dip" 36 android:layout_weight="1.0" 37 android:gravity="center" 38 > 39 40 <ImageView android:id="@+id/unlockLockIcon" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_marginRight="6dip" 44 android:baselineAligned="true" 45 android:gravity="center" 46 android:src="@android:drawable/ic_lock_idle_lock" 47 /> 48 49 <TextView android:id="@+id/headerText" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:gravity="center" 53 android:textSize="18sp"/> 54 </LinearLayout> 55 56 <!--View 57 android:background="@android:drawable/code_lock_top" 58 android:layout_width="fill_parent" 59 android:layout_height="2dip" /--> 60 <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 /> 64 <!--View 65 android:background="@android:drawable/code_lock_bottom" 66 android:layout_width="fill_parent" 67 android:layout_height="8dip" /--> 68 69 <!-- footer --> 70 <FrameLayout 71 android:layout_width="fill_parent" 72 android:layout_height="0dip" 73 android:layout_weight="1.0" 74 > 75 76 <!-- option 1: a single emergency call button --> 77 <RelativeLayout android:id="@+id/footerNormal" 78 android:layout_width="fill_parent" 79 android:layout_height="fill_parent" 80 > 81 <Button android:id="@+id/emergencyCallAlone" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" 84 android:layout_centerInParent="true" 85 android:text="@android:string/lockscreen_emergency_call" 86 android:textSize="14sp" 87 android:drawableLeft="@drawable/ic_emergency" 88 android:drawablePadding="3dip" 89 /> 90 91 </RelativeLayout> 92 93 <!-- option 2: an emergency call button, and a 'forgot pattern?' button --> 94 <LinearLayout android:id="@+id/footerForgotPattern" 95 android:orientation="horizontal" 96 android:layout_width="fill_parent" 97 android:layout_height="fill_parent" 98 android:gravity="center" 99 > 100 <Button android:id="@+id/emergencyCallTogether" 101 android:layout_width="0dip" 102 android:layout_height="fill_parent" 103 android:layout_weight="1.0" 104 android:layout_marginTop="4dip" 105 android:layout_marginBottom="4dip" 106 android:layout_marginLeft="4dip" 107 android:layout_marginRight="2dip" 108 android:text="@android:string/lockscreen_emergency_call" 109 android:textSize="14sp" 110 android:drawableLeft="@drawable/ic_emergency" 111 android:drawablePadding="3dip" 112 /> 113 <Button android:id="@+id/forgotPattern" 114 android:layout_width="0dip" 115 android:layout_height="fill_parent" 116 android:layout_weight="1.0" 117 android:layout_marginTop="4dip" 118 android:layout_marginBottom="4dip" 119 android:layout_marginLeft="2dip" 120 android:layout_marginRight="4dip" 121 android:textSize="14sp" 122 android:visibility="invisible" 123 /> 124 </LinearLayout> 125 126 </FrameLayout> 127 128</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> 129