keyguard_screen_unlock_landscape.xml revision 77491f01a3c77dd8903a0b454c83d4212377448f
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2008, 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 screen that shows the 9 circle unlock widget and instructs
21     the user how to unlock their device, or make an emergency call.  This
22     is the portrait layout.  -->
23
24<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
25    xmlns:android="http://schemas.android.com/apk/res/android"
26    android:orientation="horizontal"
27    android:layout_width="match_parent"
28    android:layout_height="match_parent"
29    android:background="#70000000"
30        >
31
32    <!-- left side: instructions and emergency call button -->
33    <LinearLayout
34            android:orientation="vertical"
35            android:layout_width="0dip"
36            android:layout_height="match_parent"
37            android:layout_weight="1.0"
38            android:layout_marginLeft="24dip"
39            android:gravity="left"
40            >
41        <TextView
42            android:id="@+id/status1"
43            android:layout_width="wrap_content"
44            android:layout_height="wrap_content"
45            android:layout_marginTop="16dip"
46            android:textAppearance="?android:attr/textAppearanceMedium"
47            />
48
49        <TextView
50            android:id="@+id/carrier"
51            android:layout_width="wrap_content"
52            android:layout_height="wrap_content"
53            android:textAppearance="?android:attr/textAppearanceMedium"
54            android:textSize="17sp"
55            android:drawablePadding="4dip"
56            android:layout_marginTop="32dip"
57            android:singleLine="true"
58            android:ellipsize="marquee"
59            android:gravity="right|bottom"
60            />
61
62        <com.android.internal.widget.DigitalClock android:id="@+id/time"
63            android:layout_width="wrap_content"
64            android:layout_height="wrap_content"
65            android:layout_alignParentTop="true"
66            android:layout_alignParentLeft="true"
67            android:layout_marginTop="8dip"
68            android:paddingBottom="8dip"
69            >
70
71            <TextView android:id="@+id/timeDisplay"
72                android:layout_width="wrap_content"
73                android:layout_height="wrap_content"
74                android:singleLine="true"
75                android:ellipsize="none"
76                android:textSize="72sp"
77                android:textAppearance="?android:attr/textAppearanceMedium"
78                android:shadowColor="#C0000000"
79                android:shadowDx="0"
80                android:shadowDy="0"
81                android:shadowRadius="3.0"
82                android:layout_marginBottom="6dip"
83                />
84
85
86            <TextView android:id="@+id/am_pm"
87                android:layout_width="wrap_content"
88                android:layout_height="wrap_content"
89                android:layout_toRightOf="@id/timeDisplay"
90                android:layout_alignBaseline="@id/timeDisplay"
91                android:singleLine="true"
92                android:ellipsize="none"
93                android:textSize="22sp"
94                android:layout_marginLeft="8dip"
95                android:textAppearance="?android:attr/textAppearanceMedium"
96                android:shadowColor="#C0000000"
97                android:shadowDx="0"
98                android:shadowDy="0"
99                android:shadowRadius="3.0"
100                />
101
102        </com.android.internal.widget.DigitalClock>
103
104        <TextView
105            android:id="@+id/date"
106            android:layout_width="wrap_content"
107            android:layout_height="wrap_content"
108            android:layout_below="@id/time"
109            android:textAppearance="?android:attr/textAppearanceMedium"
110            />
111
112        <!-- used for instructions such as "draw pattern to unlock", the next alarm, and charging
113             status.  -->
114        <LinearLayout
115            android:orientation="horizontal"
116            android:layout_width="wrap_content"
117            android:layout_height="wrap_content"
118            android:layout_marginTop="8dip"
119            android:gravity="center"
120            >
121            <TextView
122                android:id="@+id/statusSep"
123                android:layout_width="wrap_content"
124                android:layout_height="wrap_content"
125                android:layout_marginLeft="5dip"
126                android:layout_marginRight="5dip"
127                android:textAppearance="?android:attr/textAppearanceMedium"
128                android:textSize="17sp"
129                />
130            <TextView
131                android:id="@+id/status2"
132                android:layout_width="wrap_content"
133                android:layout_height="wrap_content"
134                android:layout_alignParentTop="true"
135                android:textAppearance="?android:attr/textAppearanceMedium"
136                android:textSize="17sp"
137                android:drawablePadding="4dip"
138                />
139        </LinearLayout>
140
141        <!-- fill space between header and button below -->
142        <View
143            android:layout_weight="1.0"
144            android:layout_width="match_parent"
145            android:layout_height="0dip"
146            />
147
148        <!-- footer -->
149        <FrameLayout
150            android:layout_width="match_parent"
151            android:layout_height="wrap_content"
152            android:layout_marginBottom="16dip"
153            >
154
155            <!-- option 1: a single emergency call button -->
156            <RelativeLayout android:id="@+id/footerNormal"
157                android:layout_width="match_parent"
158                android:layout_height="wrap_content"
159                android:gravity="left"
160                >
161                <Button android:id="@+id/emergencyCallAlone"
162                    android:layout_width="wrap_content"
163                    android:layout_height="wrap_content"
164                    android:text="@string/lockscreen_emergency_call"
165                    style="@style/Widget.Button.Transparent"
166                    android:drawableLeft="@drawable/ic_emergency"
167                    android:drawablePadding="8dip"
168                    />
169            </RelativeLayout>
170
171            <!-- option 2: an emergency call button, and a 'forgot pattern?' button -->
172            <LinearLayout android:id="@+id/footerForgotPattern"
173                android:orientation="vertical"
174                android:layout_width="match_parent"
175                android:layout_height="wrap_content"
176                android:gravity="left"
177                >
178                <Button android:id="@+id/forgotPattern"
179                    android:layout_width="match_parent"
180                    android:layout_height="wrap_content"
181                    style="@style/Widget.Button.Transparent"
182                    android:visibility="invisible"
183                    />
184                <Button android:id="@+id/emergencyCallTogether"
185                    android:layout_width="match_parent"
186                    android:layout_height="wrap_content"
187                    android:text="@string/lockscreen_emergency_call"
188                    style="@style/Widget.Button.Transparent"
189                    android:drawableLeft="@drawable/ic_emergency"
190                    android:drawablePadding="8dip"
191                    />
192            </LinearLayout>
193        </FrameLayout>
194    </LinearLayout>
195
196    <!-- right side: lock pattern -->
197    <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
198         android:layout_width="wrap_content"
199         android:layout_height="wrap_content" />
200
201</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
202