keyguard_screen_unlock_portrait.xml revision 6b05d58018c2806459c121e507c005639b74aee9
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<GridLayout 24 xmlns:android="http://schemas.android.com/apk/res/android" 25 android:orientation="vertical" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:gravity="center_horizontal"> 29 30 <com.android.internal.widget.DigitalClock android:id="@+id/time" 31 android:layout_marginBottom="18dip" 32 android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" 33 android:layout_gravity="right"> 34 35 <!-- Because we can't have multi-tone fonts, we render two TextViews, one on 36 top of the other. Hence the redundant layout... --> 37 <TextView android:id="@+id/timeDisplayBackground" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:singleLine="true" 41 android:ellipsize="none" 42 android:textSize="@dimen/keyguard_lockscreen_clock_font_size" 43 android:textAppearance="?android:attr/textAppearanceMedium" 44 android:layout_marginBottom="6dip" 45 android:textColor="@color/lockscreen_clock_background" 46 /> 47 48 <TextView android:id="@+id/timeDisplayForeground" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:singleLine="true" 52 android:ellipsize="none" 53 android:textSize="@dimen/keyguard_lockscreen_clock_font_size" 54 android:textAppearance="?android:attr/textAppearanceMedium" 55 android:layout_marginBottom="6dip" 56 android:textColor="@color/lockscreen_clock_foreground" 57 /> 58 59 </com.android.internal.widget.DigitalClock> 60 61 <LinearLayout 62 android:orientation="horizontal" 63 android:layout_gravity="right" 64 android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin"> 65 66 <TextView 67 android:id="@+id/date" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:singleLine="true" 71 android:ellipsize="marquee" 72 android:textAppearance="?android:attr/textAppearanceMedium" 73 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 74 /> 75 76 <TextView 77 android:id="@+id/alarm_status" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:layout_marginLeft="16dip" 81 android:singleLine="true" 82 android:ellipsize="marquee" 83 android:textAppearance="?android:attr/textAppearanceMedium" 84 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 85 android:drawablePadding="4dip" 86 /> 87 88 </LinearLayout> 89 90 91 <TextView 92 android:id="@+id/status1" 93 android:layout_gravity="right" 94 android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" 95 android:singleLine="true" 96 android:ellipsize="marquee" 97 android:textAppearance="?android:attr/textAppearanceMedium" 98 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 99 android:drawablePadding="4dip" 100 /> 101 102 <Space android:layout_gravity="fill" /> 103 104 <!-- We need MATCH_PARENT here only to force the size of the parent to be passed to 105 the pattern view for it to compute its size. This is an unusual case, caused by 106 LockPatternView's requirement to maintain a square aspect ratio based on the width 107 of the screen. --> 108 <com.android.internal.widget.LockPatternView 109 android:id="@+id/lockPattern" 110 android:layout_width="match_parent" 111 android:layout_height="match_parent" 112 android:layout_marginTop="8dip" 113 android:layout_marginRight="8dip" 114 android:layout_marginBottom="4dip" 115 android:layout_marginLeft="8dip" 116 android:layout_gravity="center|bottom" 117 /> 118 119 <TextView 120 android:id="@+id/carrier" 121 android:layout_gravity="center_horizontal" 122 android:singleLine="true" 123 android:ellipsize="marquee" 124 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 125 android:textAppearance="?android:attr/textAppearanceMedium" 126 /> 127 128 <!-- Footer: an emergency call button and an initially hidden "Forgot pattern" button --> 129 <LinearLayout 130 android:orientation="horizontal" 131 android:layout_width="match_parent" 132 style="?android:attr/buttonBarStyle" 133 android:gravity="center" 134 android:weightSum="2"> 135 136 <Button android:id="@+id/emergencyCallButton" 137 android:layout_gravity="center_horizontal" 138 android:layout_width="0dip" 139 android:layout_height="wrap_content" 140 android:layout_weight="1" 141 style="?android:attr/buttonBarButtonStyle" 142 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 143 android:text="@string/lockscreen_emergency_call" 144 android:drawableLeft="@drawable/lockscreen_emergency_button" 145 android:drawablePadding="0dip" 146 /> 147 148 <Button android:id="@+id/forgotPatternButton" 149 android:layout_gravity="center_horizontal" 150 android:layout_width="0dip" 151 android:layout_height="wrap_content" 152 android:layout_weight="1" 153 style="?android:attr/buttonBarButtonStyle" 154 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 155 android:text="@string/lockscreen_forgot_pattern_button_text" 156 android:drawableLeft="@drawable/lockscreen_forgot_password_button" 157 android:drawablePadding="0dip" 158 /> 159 160 </LinearLayout> 161 162 <!-- Music transport control --> 163 <include android:id="@+id/transport" 164 layout="@layout/keyguard_transport_control" 165 android:layout_row="0" 166 android:layout_column="0" 167 android:layout_rowSpan="4" 168 android:layout_columnSpan="1" 169 android:layout_gravity="fill" 170 /> 171 172</GridLayout> 173