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.  It is the same for landscape
23  and portrait.-->
24<GridLayout
25    xmlns:android="http://schemas.android.com/apk/res/android"
26    android:orientation="vertical"
27    android:layout_width="match_parent"
28    android:layout_height="match_parent"
29    android:gravity="center_horizontal">
30
31    <com.android.internal.widget.DigitalClock android:id="@+id/time"
32        android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin"
33        android:layout_marginBottom="12dip"
34        android:layout_marginEnd="@dimen/keyguard_lockscreen_status_line_font_right_margin"
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    <LinearLayout
66        android:orientation="horizontal"
67        android:layout_gravity="end"
68        android:layout_marginEnd="@dimen/keyguard_lockscreen_status_line_font_right_margin">
69
70        <TextView
71            android:id="@+id/date"
72            android:layout_width="wrap_content"
73            android:layout_height="wrap_content"
74            android:singleLine="true"
75            android:ellipsize="marquee"
76            android:textAppearance="?android:attr/textAppearanceMedium"
77            android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
78            />
79
80        <TextView
81            android:id="@+id/alarm_status"
82            android:layout_width="wrap_content"
83            android:layout_height="wrap_content"
84            android:layout_marginStart="16dip"
85            android:singleLine="true"
86            android:ellipsize="marquee"
87            android:textAppearance="?android:attr/textAppearanceMedium"
88            android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
89            android:drawablePadding="4dip"
90            />
91
92    </LinearLayout>
93
94    <TextView
95        android:id="@+id/status1"
96        android:layout_gravity="end"
97        android:layout_marginEnd="@dimen/keyguard_lockscreen_status_line_font_right_margin"
98        android:singleLine="true"
99        android:ellipsize="marquee"
100        android:textAppearance="?android:attr/textAppearanceMedium"
101        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
102        android:drawablePadding="4dip"
103        />
104
105    <Space android:layout_gravity="fill" />
106
107    <!-- emergency call button shown when sim is PUKd and tab_selector is hidden -->
108    <Button
109        android:id="@+id/emergencyCallButton"
110        android:layout_width="wrap_content"
111        android:layout_height="wrap_content"
112        android:layout_marginTop="4dip"
113        android:layout_marginEnd="16dip"
114        android:layout_gravity="end"
115        android:drawableLeft="@*android:drawable/lockscreen_emergency_button"
116        style="?android:attr/buttonBarButtonStyle"
117        android:drawablePadding="4dip"
118        android:text="@*android:string/lockscreen_emergency_call"
119        android:visibility="gone"
120        />
121
122    <RelativeLayout
123        android:layout_width="match_parent"
124        android:layout_height="302dip">
125
126        <com.android.internal.widget.multiwaveview.GlowPadView
127            android:id="@+id/unlock_widget"
128            android:orientation="horizontal"
129            android:layout_width="match_parent"
130            android:layout_height="match_parent"
131            android:layout_alignParentBottom="true"
132            android:gravity="top"
133            android:focusable="true"
134
135            android:targetDrawables="@array/lockscreen_targets_with_camera"
136            android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera"
137            android:directionDescriptions="@array/lockscreen_direction_descriptions"
138            android:handleDrawable="@drawable/ic_lockscreen_handle"
139            android:outerRingDrawable="@drawable/ic_lockscreen_outerring"
140            android:outerRadius="@dimen/glowpadview_target_placement_radius"
141            android:innerRadius="@dimen/glowpadview_inner_radius"
142            android:snapMargin="@dimen/glowpadview_snap_margin"
143            android:feedbackCount="1"
144            android:vibrationDuration="20"
145            android:glowRadius="@dimen/glowpadview_glow_radius"
146            android:pointDrawable="@drawable/ic_lockscreen_glowdot"
147            />
148
149        <TextView
150            android:id="@+id/carrier"
151            android:layout_width="fill_parent"
152            android:layout_height="wrap_content"
153            android:layout_alignParentBottom="true"
154            android:layout_marginBottom="12dip"
155            android:gravity="center_horizontal"
156            android:singleLine="true"
157            android:ellipsize="marquee"
158            android:textAppearance="?android:attr/textAppearanceMedium"
159            android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
160            android:textColor="?android:attr/textColorSecondary"
161            />
162
163    </RelativeLayout>
164
165    <LinearLayout
166        android:orientation="horizontal"
167        android:layout_width="match_parent"
168        style="?android:attr/buttonBarStyle"
169        android:gravity="center"
170        android:weightSum="2">
171
172        <Button android:id="@+id/emergencyCallButton"
173            android:layout_gravity="center_horizontal"
174            android:layout_width="0dip"
175            android:layout_height="wrap_content"
176            android:layout_weight="1"
177            style="?android:attr/buttonBarButtonStyle"
178            android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
179            android:text="@*android:string/lockscreen_emergency_call"
180            android:drawableLeft="@*android:drawable/lockscreen_emergency_button"
181            android:drawablePadding="0dip"
182            android:visibility="gone"
183        />
184
185    </LinearLayout>
186
187    <!-- Music transport control -->
188    <include android:id="@+id/transport"
189        layout="@layout/keyguard_transport_control"
190        android:layout_row="0"
191        android:layout_column="0"
192        android:layout_rowSpan="4"
193        android:layout_columnSpan="1"
194        android:layout_gravity="fill"
195        android:layout_width="0dip"
196        android:layout_height="0dip"
197        />
198
199</GridLayout>
200
201