keyguard_screen_tab_unlock_land.xml revision 6b05d58018c2806459c121e507c005639b74aee9
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="7"
28    android:id="@+id/root"
29    android:clipChildren="false">
30
31    <!-- Column 0 -->
32    <com.android.internal.widget.DigitalClock android:id="@+id/time"
33        android:layout_marginTop="80dip"
34        android:layout_marginBottom="8dip"
35        android:layout_gravity="right">
36
37       <!-- Because we can't have multi-tone fonts, we render two TextViews, one on
38        top of the other. Hence the redundant layout... -->
39        <TextView android:id="@+id/timeDisplayBackground"
40            android:layout_width="wrap_content"
41            android:layout_height="wrap_content"
42            android:singleLine="true"
43            android:ellipsize="none"
44            android:textSize="@dimen/keyguard_lockscreen_clock_font_size"
45            android:textAppearance="?android:attr/textAppearanceMedium"
46            android:layout_marginBottom="6dip"
47            android:textColor="@color/lockscreen_clock_background"
48            />
49
50        <TextView android:id="@+id/timeDisplayForeground"
51            android:layout_width="wrap_content"
52            android:layout_height="wrap_content"
53            android:singleLine="true"
54            android:ellipsize="none"
55            android:textSize="@dimen/keyguard_lockscreen_clock_font_size"
56            android:textAppearance="?android:attr/textAppearanceMedium"
57            android:layout_marginBottom="6dip"
58            android:textColor="@color/lockscreen_clock_foreground"
59            android:layout_alignLeft="@id/timeDisplayBackground"
60            android:layout_alignTop="@id/timeDisplayBackground"
61            />
62
63    </com.android.internal.widget.DigitalClock>
64
65    <TextView
66        android:id="@+id/date"
67        android:layout_below="@id/time"
68        android:layout_marginTop="6dip"
69        android:singleLine="true"
70        android:ellipsize="marquee"
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:singleLine="true"
79        android:ellipsize="marquee"
80        android:textAppearance="?android:attr/textAppearanceMedium"
81        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
82        android:drawablePadding="4dip"
83        android:layout_marginTop="4dip"
84        android:layout_gravity="right"
85        />
86
87    <TextView
88        android:id="@+id/status1"
89        android:layout_marginTop="4dip"
90        android:singleLine="true"
91        android:ellipsize="marquee"
92        android:textAppearance="?android:attr/textAppearanceMedium"
93        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
94        android:drawablePadding="4dip"
95        android:layout_gravity="right"
96        />
97
98    <Space android:layout_gravity="fill" />
99
100    <TextView
101        android:id="@+id/carrier"
102        android:layout_width="wrap_content"
103        android:layout_height="wrap_content"
104        android:layout_gravity="right"
105        android:singleLine="true"
106        android:ellipsize="marquee"
107        android:textAppearance="?android:attr/textAppearanceMedium"
108        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
109        android:textColor="?android:attr/textColorSecondary"
110        />
111
112    <Button
113        android:id="@+id/emergencyCallButton"
114        android:layout_width="wrap_content"
115        android:layout_height="wrap_content"
116        android:layout_gravity="right"
117        android:drawableLeft="@*android:drawable/lockscreen_emergency_button"
118        android:text="@*android:string/lockscreen_emergency_call"
119        style="?android:attr/buttonBarButtonStyle"
120        android:drawablePadding="8dip"
121        android:visibility="gone"
122        />
123
124    <!-- Column 1 -->
125    <Space android:layout_width="64dip" android:layout_rowSpan="7" />
126
127    <!-- Column 2 -->
128    <com.android.internal.widget.multiwaveview.MultiWaveView
129        android:id="@+id/unlock_widget"
130        android:layout_width="200dip"
131        android:layout_height="match_parent"
132        android:layout_rowSpan="7"
133
134        android:targetDrawables="@array/lockscreen_targets_when_silent"
135        android:handleDrawable="@drawable/ic_lockscreen_handle"
136        android:waveDrawable="@drawable/ic_lockscreen_outerring"
137        android:outerRadius="@dimen/multiwaveview_target_placement_radius"
138        android:snapMargin="@dimen/multiwaveview_snap_margin"
139        android:hitRadius="@dimen/multiwaveview_hit_radius"
140        android:topChevronDrawable="@drawable/ic_lockscreen_chevron_up"
141        android:feedbackCount="3"
142        android:vibrationDuration="20"
143        android:horizontalOffset="0dip"
144        android:verticalOffset="0dip"
145        />
146
147    <!-- Music transport control -->
148    <include android:id="@+id/transport"
149        layout="@layout/keyguard_transport_control"
150        android:layout_row="0"
151        android:layout_column="0"
152        android:layout_rowSpan="5"
153        android:layout_columnSpan="1"
154        android:layout_gravity="fill"
155        />
156
157</GridLayout>
158