keyguard_screen_status_land.xml revision 024e429b49e70469fa20b4e3cac17e1921c68f9d
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2010, 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<!-- Status to show on the left side of lock screen -->
21<LinearLayout
22        xmlns:android="http://schemas.android.com/apk/res/android"
23        android:orientation="vertical"
24        android:layout_width="wrap_content"
25        android:layout_height="wrap_content"
26        android:gravity="left"
27        >
28
29    <TextView
30        android:id="@+id/carrier"
31        android:layout_width="wrap_content"
32        android:layout_height="wrap_content"
33        android:textAppearance="?android:attr/textAppearanceMedium"
34        android:textSize="17sp"
35        android:drawablePadding="4dip"
36        android:layout_marginTop="32dip"
37        android:singleLine="true"
38        android:ellipsize="marquee"
39        android:visibility="gone"
40        />
41
42    <com.android.internal.widget.DigitalClock android:id="@+id/time"
43        android:layout_width="wrap_content"
44        android:layout_height="wrap_content"
45        android:layout_alignParentTop="true"
46        android:layout_alignParentLeft="true"
47        android:layout_marginTop="8dip"
48        android:layout_marginBottom="8dip"
49        android:layout_marginLeft="-10dip"
50        >
51
52        <!-- Because we can't have multi-tone fonts, we render two TextViews, one on
53        top of the other. Hence the redundant layout... -->
54        <TextView android:id="@+id/timeDisplayBackground"
55            android:layout_width="wrap_content"
56            android:layout_height="wrap_content"
57            android:singleLine="true"
58            android:ellipsize="none"
59            android:textSize="98sp"
60            android:textAppearance="?android:attr/textAppearanceMedium"
61            android:textColor="@color/lockscreen_clock_background"
62            android:layout_marginBottom="6dip"
63            />
64
65        <TextView android:id="@+id/timeDisplayForeground"
66            android:layout_width="wrap_content"
67            android:layout_height="wrap_content"
68            android:singleLine="true"
69            android:ellipsize="none"
70            android:textSize="98sp"
71            android:textAppearance="?android:attr/textAppearanceMedium"
72            android:textColor="@color/lockscreen_clock_foreground"
73            android:layout_alignLeft="@id/timeDisplayBackground"
74            android:layout_alignTop="@id/timeDisplayBackground"
75            android:layout_marginBottom="6dip"
76            />
77
78        <TextView android:id="@+id/am_pm"
79            android:layout_width="wrap_content"
80            android:layout_height="wrap_content"
81            android:layout_toRightOf="@id/timeDisplayBackground"
82            android:layout_alignBaseline="@id/timeDisplayBackground"
83            android:singleLine="true"
84            android:ellipsize="none"
85            android:textSize="30sp"
86            android:layout_marginLeft="8dip"
87            android:textAppearance="?android:attr/textAppearanceMedium"
88            android:textColor="@color/lockscreen_clock_am_pm"
89            />
90
91    </com.android.internal.widget.DigitalClock>
92
93    <LinearLayout
94        android:orientation="horizontal"
95        android:layout_width="wrap_content"
96        android:layout_height="wrap_content"
97        android:layout_below="@id/time"
98        android:layout_marginTop="10dip">
99
100        <TextView
101            android:id="@+id/date"
102            android:layout_width="wrap_content"
103            android:layout_height="wrap_content"
104            android:textAppearance="?android:attr/textAppearanceMedium"
105            android:textSize="17sp"/>
106
107        <TextView
108            android:id="@+id/alarm_status"
109            android:layout_width="wrap_content"
110            android:layout_height="wrap_content"
111            android:layout_marginLeft="30dip"
112            android:textAppearance="?android:attr/textAppearanceMedium"
113            android:textSize="17sp"/>
114
115    </LinearLayout>
116
117    <!-- Status2 is generally charge status  -->
118    <TextView
119        android:id="@+id/status2"
120        android:layout_width="wrap_content"
121        android:layout_height="wrap_content"
122        android:layout_alignParentTop="true"
123        android:textAppearance="?android:attr/textAppearanceMedium"
124        android:textSize="17sp"
125        android:layout_marginTop="10dip"
126        android:drawablePadding="4dip"
127        android:visibility="gone"
128        />
129
130    <!-- Status1 is generally battery status and informational messages -->
131    <TextView
132        android:id="@+id/status1"
133        android:layout_width="wrap_content"
134        android:layout_height="wrap_content"
135        android:layout_marginTop="10dip"
136        android:textSize="17sp"
137        android:textAppearance="?android:attr/textAppearanceMedium"
138        />
139
140    <TextView
141        android:id="@+id/propertyOf"
142        android:lineSpacingExtra="8dip"
143        android:layout_width="wrap_content"
144        android:layout_height="wrap_content"
145        android:textAppearance="?android:attr/textAppearanceMedium"
146        android:textSize="17sp"
147        android:layout_marginTop="20dip"
148        android:singleLine="false"
149        android:textColor="@color/lockscreen_owner_info"
150        android:visibility="invisible"
151        />
152</LinearLayout>
153