keyguard_screen_unlock_landscape.xml revision 08a975ef86200a73db51bfbcca6bea8ad2a63cbd
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<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" 25 android:id="@+id/root" 26 android:orientation="vertical" 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 android:rowCount="8"> 30 31 <!-- Column 0: Time, date and status --> 32 <com.android.internal.widget.DigitalClock android:id="@+id/time" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:layout_marginTop="8dip" 36 android:layout_marginBottom="12dip" 37 android:layout_gravity="right"> 38 39 <!-- Because we can't have multi-tone fonts, we render two TextViews, one on 40 top of the other. Hence the redundant layout... --> 41 <TextView android:id="@+id/timeDisplayBackground" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:singleLine="true" 45 android:ellipsize="none" 46 android:textAppearance="?android:attr/textAppearanceMedium" 47 android:textSize="@dimen/keyguard_lockscreen_clock_font_size" 48 android:layout_marginBottom="6dip" 49 android:textColor="@color/lockscreen_clock_background" 50 /> 51 52 <TextView android:id="@+id/timeDisplayForeground" 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:singleLine="true" 56 android:ellipsize="none" 57 android:textAppearance="?android:attr/textAppearanceMedium" 58 android:textSize="@dimen/keyguard_lockscreen_clock_font_size" 59 android:layout_marginBottom="6dip" 60 android:layout_alignLeft="@id/timeDisplayBackground" 61 android:layout_alignTop="@id/timeDisplayBackground" 62 android:textColor="@color/lockscreen_clock_foreground" 63 /> 64 65 </com.android.internal.widget.DigitalClock> 66 67 <TextView 68 android:id="@+id/date" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:textAppearance="?android:attr/textAppearanceMedium" 72 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 73 android:layout_gravity="right" 74 /> 75 76 <TextView 77 android:id="@+id/alarm_status" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:textAppearance="?android:attr/textAppearanceMedium" 81 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 82 android:layout_gravity="right" 83 android:drawablePadding="4dip" 84 /> 85 86 <TextView 87 android:id="@+id/status1" 88 android:layout_width="wrap_content" 89 android:layout_height="wrap_content" 90 android:textAppearance="?android:attr/textAppearanceMedium" 91 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 92 android:layout_gravity="right" 93 /> 94 95 <!-- TODO: remove hard coded height since layout_rowWeight doesn't seem to be working --> 96 <Space 97 android:layout_height="43dip" 98 android:layout_gravity="fill" 99 android:layout_rowWeight="1" android:layout_columnWeight="1" /> 100 101 <TextView android:id="@+id/carrier" 102 android:layout_gravity="right" 103 android:textAppearance="?android:attr/textAppearanceMedium" 104 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 105 android:singleLine="true" 106 android:ellipsize="marquee" 107 /> 108 109 <Button android:id="@+id/emergencyCallButton" 110 android:layout_gravity="right" 111 style="@style/Widget.Button.Transparent" 112 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 113 android:text="@string/lockscreen_emergency_call" 114 android:drawableLeft="@drawable/lockscreen_emergency_button" 115 android:drawablePadding="0dip" 116 android:background="@null" 117 /> 118 119 <Button android:id="@+id/forgotPatternButton" 120 android:layout_gravity="right" 121 style="@style/Widget.Button.Transparent" 122 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 123 android:text="@string/lockscreen_forgot_pattern_button_text" 124 android:drawableLeft="@drawable/lockscreen_forgot_password_button" 125 android:drawablePadding="0dip" 126 android:background="@null" 127 /> 128 129 <!-- Column 1: lock pattern --> 130 <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" 131 android:layout_width="match_parent" 132 android:layout_height="match_parent" 133 android:layout_marginTop="8dip" 134 android:layout_marginRight="8dip" 135 android:layout_marginBottom="8dip" 136 android:layout_marginLeft="8dip" 137 android:layout_rowSpan="8"/> 138 139</GridLayout> 140