keyguard_screen_tab_unlock_land.xml revision aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17
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="end">
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_alignStart="@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_width="0dip"
68        android:layout_gravity="fill_horizontal"
69        android:gravity="end"
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        />
76
77    <TextView
78        android:id="@+id/alarm_status"
79        android:singleLine="true"
80        android:ellipsize="marquee"
81        android:textAppearance="?android:attr/textAppearanceMedium"
82        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
83        android:drawablePadding="4dip"
84        android:layout_marginTop="4dip"
85        android:layout_gravity="end"
86        />
87
88    <TextView
89        android:id="@+id/status1"
90        android:layout_width="0dip"
91        android:layout_gravity="fill_horizontal"
92        android:gravity="end"
93        android:layout_marginTop="4dip"
94        android:singleLine="true"
95        android:ellipsize="marquee"
96        android:textAppearance="?android:attr/textAppearanceMedium"
97        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
98        android:drawablePadding="4dip"
99        />
100
101    <Space android:layout_gravity="fill" />
102
103    <TextView
104        android:id="@+id/carrier"
105        android:layout_width="0dip"
106        android:layout_gravity="fill_horizontal"
107        android:layout_marginBottom="12dip"
108        android:gravity="end"
109        android:singleLine="true"
110        android:ellipsize="marquee"
111        android:textAppearance="?android:attr/textAppearanceMedium"
112        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
113        android:textColor="?android:attr/textColorSecondary"
114        />
115
116    <Button
117        android:id="@+id/emergencyCallButton"
118        android:layout_width="wrap_content"
119        android:layout_height="wrap_content"
120        android:layout_gravity="end"
121        android:drawableLeft="@*android:drawable/lockscreen_emergency_button"
122        android:text="@*android:string/lockscreen_emergency_call"
123        style="?android:attr/buttonBarButtonStyle"
124        android:drawablePadding="8dip"
125        android:visibility="gone"
126        />
127
128    <!-- Column 1 -->
129    <Space android:layout_width="64dip" android:layout_rowSpan="7" />
130
131    <!-- Column 2 -->
132    <com.android.internal.widget.multiwaveview.GlowPadView
133        android:id="@+id/unlock_widget"
134        android:layout_width="302dip"
135        android:layout_height="match_parent"
136        android:layout_rowSpan="7"
137        android:gravity="start|center_vertical"
138        android:focusable="true"
139
140        android:targetDrawables="@array/lockscreen_targets_with_camera"
141        android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera"
142        android:directionDescriptions="@array/lockscreen_direction_descriptions"
143        android:handleDrawable="@drawable/ic_lockscreen_handle"
144        android:outerRingDrawable="@drawable/ic_lockscreen_outerring"
145        android:outerRadius="@dimen/glowpadview_target_placement_radius"
146        android:innerRadius="@dimen/glowpadview_inner_radius"
147        android:snapMargin="@dimen/glowpadview_snap_margin"
148        android:feedbackCount="1"
149        android:vibrationDuration="20"
150        android:glowRadius="@dimen/glowpadview_glow_radius"
151        android:pointDrawable="@drawable/ic_lockscreen_glowdot"
152        />
153
154    <!-- Music transport control -->
155    <include android:id="@+id/transport"
156        layout="@layout/keyguard_transport_control"
157        android:layout_row="0"
158        android:layout_column="0"
159        android:layout_rowSpan="5"
160        android:layout_columnSpan="1"
161        android:layout_gravity="fill"
162        android:layout_width="0dip"
163        android:layout_height="0dip"
164        />
165
166</GridLayout>
167