keyguard_screen_tab_unlock_land.xml revision 7377cd0ab4e4db23d6ef99c2c73e3e1d5c9312fa
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:singleLine="true" 72 android:ellipsize="marquee" 73 android:textAppearance="?android:attr/textAppearanceMedium" 74 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 75 android:layout_gravity="right" 76 /> 77 78 <TextView 79 android:id="@+id/alarm_status" 80 android:singleLine="true" 81 android:ellipsize="marquee" 82 android:textAppearance="?android:attr/textAppearanceMedium" 83 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 84 android:drawablePadding="4dip" 85 android:layout_marginTop="4dip" 86 android:layout_gravity="right" 87 /> 88 89 <TextView 90 android:id="@+id/status1" 91 android:layout_marginTop="4dip" 92 android:singleLine="true" 93 android:ellipsize="marquee" 94 android:textAppearance="?android:attr/textAppearanceMedium" 95 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 96 android:drawablePadding="4dip" 97 android:layout_gravity="right" 98 /> 99 100 <TextView 101 android:id="@+id/status2" 102 android:layout_marginTop="4dip" 103 android:singleLine="true" 104 android:ellipsize="marquee" 105 android:textAppearance="?android:attr/textAppearanceMedium" 106 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 107 android:drawablePadding="4dip" 108 android:layout_gravity="right" 109 /> 110 111 <TextView 112 android:id="@+id/screenLocked" 113 android:singleLine="true" 114 android:ellipsize="marquee" 115 android:textAppearance="?android:attr/textAppearanceMedium" 116 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 117 android:gravity="center" 118 android:layout_marginTop="4dip" 119 android:drawablePadding="4dip" 120 android:layout_gravity="right" 121 /> 122 123 <Space android:height="20dip"/> 124 125 <LinearLayout android:orientation="vertical" 126 android:layout_gravity="right" 127 android:gravity="fill_horizontal"> 128 129 <TextView 130 android:id="@+id/carrier" 131 android:layout_width="wrap_content" 132 android:layout_height="wrap_content" 133 android:layout_alignParentTop="true" 134 android:singleLine="true" 135 android:ellipsize="marquee" 136 android:layout_gravity="right" 137 android:textAppearance="?android:attr/textAppearanceMedium" 138 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 139 android:textColor="?android:attr/textColorSecondary" 140 /> 141 142 <!-- "emergency calls only" shown when sim is missing or PUKd --> 143 <TextView 144 android:id="@+id/emergencyCallText" 145 android:layout_width="wrap_content" 146 android:layout_height="wrap_content" 147 android:layout_alignParentTop="true" 148 android:layout_marginTop="20dip" 149 android:singleLine="true" 150 android:ellipsize="marquee" 151 android:text="@string/emergency_calls_only" 152 android:textAppearance="?android:attr/textAppearanceMedium" 153 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 154 android:textColor="?android:attr/textColorSecondary" 155 android:layout_gravity="right" 156 /> 157 158 <Button 159 android:id="@+id/emergencyCallButton" 160 android:layout_width="wrap_content" 161 android:layout_height="wrap_content" 162 android:drawableLeft="@drawable/lockscreen_emergency_button" 163 android:text="@string/lockscreen_emergency_call" 164 style="?android:attr/buttonBarButtonStyle" 165 android:drawablePadding="8dip" 166 android:visibility="visible" 167 android:layout_gravity="right" 168 /> 169 </LinearLayout> 170 171 <!-- Column 1 --> 172 <Space android:width="20dip" android:layout_columnWeight="1" android:layout_rowSpan="10" /> 173 174 <!-- Column 2 --> 175 <com.android.internal.widget.multiwaveview.MultiWaveView 176 android:id="@+id/unlock_widget" 177 android:layout_width="300dip" 178 android:layout_height="match_parent" 179 android:layout_rowSpan="10" 180 181 android:targetDrawables="@array/lockscreen_targets_when_silent" 182 android:handleDrawable="@drawable/ic_lockscreen_handle" 183 android:waveDrawable="@drawable/ic_lockscreen_outerring" 184 android:outerRadius="@dimen/multiwaveview_target_placement_radius" 185 android:snapMargin="@dimen/multiwaveview_snap_margin" 186 android:hitRadius="@dimen/multiwaveview_hit_radius" 187 android:topChevronDrawable="@drawable/ic_lockscreen_chevron_up" 188 android:feedbackCount="3" 189 android:vibrationDuration="20" 190 android:horizontalOffset="0dip" 191 android:verticalOffset="0dip" 192 /> 193 194</GridLayout> 195