keyguard_screen_tab_unlock_land.xml revision 08a975ef86200a73db51bfbcca6bea8ad2a63cbd
1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3** 4** Copyright 2009, 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 general lock screen which shows information about the 21 state of the device, as well as instructions on how to get past it 22 depending on the state of the device.--> 23<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 android:orientation="vertical" 27 android:rowCount="10" 28 android:id="@+id/root" 29 android:clipChildren="false"> 30 31 <!-- Column 0 --> 32 <Space android:height="20dip"/> 33 34 <com.android.internal.widget.DigitalClock android:id="@+id/time" 35 android:layout_marginTop="16dip" 36 android:layout_marginBottom="8dip" 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:textSize="@dimen/keyguard_lockscreen_clock_font_size" 47 android:textAppearance="?android:attr/textAppearanceMedium" 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:textSize="@dimen/keyguard_lockscreen_clock_font_size" 58 android:textAppearance="?android:attr/textAppearanceMedium" 59 android:layout_marginBottom="6dip" 60 android:textColor="@color/lockscreen_clock_foreground" 61 android:layout_alignLeft="@id/timeDisplayBackground" 62 android:layout_alignTop="@id/timeDisplayBackground" 63 /> 64 65 </com.android.internal.widget.DigitalClock> 66 67 <TextView 68 android:id="@+id/date" 69 android:layout_below="@id/time" 70 android:layout_marginTop="6dip" 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:textAppearance="?android:attr/textAppearanceMedium" 79 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 80 android:drawablePadding="4dip" 81 android:layout_marginTop="4dip" 82 android:layout_gravity="right" 83 /> 84 85 <TextView 86 android:id="@+id/status1" 87 android:layout_marginTop="4dip" 88 android:textAppearance="?android:attr/textAppearanceMedium" 89 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 90 android:drawablePadding="4dip" 91 android:layout_gravity="right" 92 /> 93 94 <TextView 95 android:id="@+id/status2" 96 android:layout_marginTop="4dip" 97 android:textAppearance="?android:attr/textAppearanceMedium" 98 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 99 android:drawablePadding="4dip" 100 android:layout_gravity="right" 101 /> 102 103 <TextView 104 android:id="@+id/screenLocked" 105 android:textAppearance="?android:attr/textAppearanceMedium" 106 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 107 android:gravity="center" 108 android:layout_marginTop="4dip" 109 android:drawablePadding="4dip" 110 android:layout_gravity="right" 111 /> 112 113 <Space android:height="20dip"/> 114 115 <LinearLayout android:orientation="vertical" 116 android:gravity="fill"> 117 118 <TextView 119 android:id="@+id/carrier" 120 android:layout_width="wrap_content" 121 android:layout_height="wrap_content" 122 android:layout_alignParentTop="true" 123 android:singleLine="true" 124 android:ellipsize="marquee" 125 android:layout_gravity="right" 126 android:textAppearance="?android:attr/textAppearanceMedium" 127 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 128 android:textColor="?android:attr/textColorSecondary" 129 /> 130 131 <!-- "emergency calls only" shown when sim is missing or PUKd --> 132 <TextView 133 android:id="@+id/emergencyCallText" 134 android:layout_width="wrap_content" 135 android:layout_height="wrap_content" 136 android:layout_alignParentTop="true" 137 android:layout_marginTop="20dip" 138 android:singleLine="true" 139 android:ellipsize="marquee" 140 android:text="@string/emergency_calls_only" 141 android:textAppearance="?android:attr/textAppearanceMedium" 142 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 143 android:textColor="?android:attr/textColorSecondary" 144 android:layout_gravity="right" 145 /> 146 147 <Button 148 android:id="@+id/emergencyCallButton" 149 android:layout_width="wrap_content" 150 android:layout_height="wrap_content" 151 android:drawableLeft="@drawable/ic_emergency" 152 android:text="@string/lockscreen_emergency_call" 153 style="@style/Widget.Button.Transparent" 154 android:drawablePadding="8dip" 155 android:layout_marginRight="80dip" 156 android:visibility="visible" 157 android:layout_gravity="right" 158 /> 159 </LinearLayout> 160 161 <!-- Column 1 --> 162 <Space android:width="20dip" android:layout_columnWeight="1" android:layout_rowSpan="10" /> 163 164 <!-- Column 2 --> 165 <com.android.internal.widget.multiwaveview.MultiWaveView 166 android:id="@+id/unlock_widget" 167 android:layout_width="300dip" 168 android:layout_height="match_parent" 169 android:layout_rowSpan="10" 170 171 android:targetDrawables="@array/lockscreen_targets_when_silent" 172 android:handleDrawable="@drawable/ic_lockscreen_handle" 173 android:waveDrawable="@drawable/ic_lockscreen_outerring" 174 android:outerRadius="@dimen/multiwaveview_target_placement_radius" 175 android:snapMargin="@dimen/multiwaveview_snap_margin" 176 android:hitRadius="@dimen/multiwaveview_hit_radius" 177 android:topChevronDrawable="@drawable/ic_lockscreen_chevron_up" 178 android:feedbackCount="3" 179 android:vibrationDuration="20" 180 android:horizontalOffset="0dip" 181 android:verticalOffset="0dip" 182 /> 183 184</GridLayout> 185