keyguard_screen_unlock_portrait.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<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 and emergency/forgot pattern buttons --> 27 <LinearLayout 28 android:layout_height="0dip" 29 android:layout_weight="1" 30 android:layout_width="match_parent" 31 android:orientation="vertical"> 32 33 <include layout="@layout/keyguard_screen_status_port" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:layout_marginTop="134dip" 37 android:layout_marginLeft="266dip"/> 38 39 <!-- Emergency and forgot pattern buttons. --> 40 <LinearLayout 41 android:layout_width="match_parent" 42 android:layout_height="wrap_content" 43 android:orientation="horizontal" 44 android:gravity="center_horizontal"> 45 46 <Button android:id="@+id/forgotPatternButton" 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:layout_gravity="center" 50 style="@style/Widget.Button.Transparent" 51 android:drawableLeft="@drawable/ic_emergency" 52 android:drawablePadding="8dip" 53 android:text="@string/lockscreen_forgot_pattern_button_text" 54 android:visibility="gone" 55 /> 56 57 <Button android:id="@+id/emergencyCallButton" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:layout_gravity="center" 61 style="@style/Widget.Button.Transparent" 62 android:drawableLeft="@drawable/ic_emergency" 63 android:drawablePadding="8dip" 64 android:text="@string/lockscreen_emergency_call" 65 android:visibility="gone" 66 /> 67 68 </LinearLayout> 69 70 </LinearLayout> 71 72 <!-- right side: lock pattern --> 73 <LinearLayout 74 android:layout_weight="1" 75 android:layout_width="match_parent" 76 android:layout_height="0dip" 77 android:gravity="center" 78 > 79 <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" 80 android:layout_width="354dip" 81 android:layout_height="354dip" 82 android:layout_marginTop="50dip" 83 /> 84 </LinearLayout> 85 86</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> 87 88