keyguard_screen_tab_unlock.xml revision 7377cd0ab4e4db23d6ef99c2c73e3e1d5c9312fa
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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
25    android:layout_width="match_parent"
26    android:layout_height="match_parent"
27    android:gravity="center_horizontal"
28    android:id="@+id/root"
29    android:clipChildren="false">
30
31    <!-- time and date -->
32    <com.android.internal.widget.DigitalClock android:id="@+id/time"
33        android:layout_width="wrap_content"
34        android:layout_height="wrap_content"
35        android:layout_alignParentRight="true"
36        android:layout_marginRight="16dip"
37        android:layout_marginTop="48dip"
38        android:layout_marginLeft="20dip">
39
40        <!-- Because we can't have multi-tone fonts, we render two TextViews, one on
41        top of the other. Hence the redundant layout... -->
42        <TextView android:id="@+id/timeDisplayBackground"
43            android:layout_width="wrap_content"
44            android:layout_height="wrap_content"
45            android:singleLine="true"
46            android:ellipsize="none"
47            android:textSize="@dimen/keyguard_lockscreen_clock_font_size"
48            android:textAppearance="?android:attr/textAppearanceMedium"
49            android:layout_marginBottom="6dip"
50            android:textColor="@color/lockscreen_clock_background"
51            />
52
53        <TextView android:id="@+id/timeDisplayForeground"
54            android:layout_width="wrap_content"
55            android:layout_height="wrap_content"
56            android:singleLine="true"
57            android:ellipsize="none"
58            android:textSize="@dimen/keyguard_lockscreen_clock_font_size"
59            android:textAppearance="?android:attr/textAppearanceMedium"
60            android:layout_marginBottom="6dip"
61            android:textColor="@color/lockscreen_clock_foreground"
62            android:layout_alignLeft="@id/timeDisplayBackground"
63            android:layout_alignTop="@id/timeDisplayBackground"
64            />
65
66    </com.android.internal.widget.DigitalClock>
67
68    <LinearLayout android:id="@+id/date_alarm_status_container"
69        android:layout_width="match_parent"
70        android:layout_height="wrap_content"
71        android:layout_below="@id/time"
72        android:layout_marginLeft="16dip"
73        android:layout_marginRight="16dip"
74        android:layout_marginTop="16dip"
75        android:layout_alignParentRight="true"
76        android:gravity="right"
77        android:orientation="horizontal">
78
79        <TextView
80            android:id="@+id/date"
81            android:layout_width="wrap_content"
82            android:layout_height="wrap_content"
83            android:singleLine="true"
84            android:ellipsize="marquee"
85            android:textAppearance="?android:attr/textAppearanceMedium"
86            android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
87            />
88
89        <TextView
90            android:id="@+id/alarm_status"
91            android:layout_width="wrap_content"
92            android:layout_height="wrap_content"
93            android:singleLine="true"
94            android:ellipsize="marquee"
95            android:textAppearance="?android:attr/textAppearanceMedium"
96            android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
97            android:drawablePadding="4dip"
98            android:layout_marginLeft="16dip"
99            />
100
101    </LinearLayout>
102
103    <TextView
104        android:id="@+id/status1"
105        android:layout_width="wrap_content"
106        android:layout_height="wrap_content"
107        android:layout_below="@id/date_alarm_status_container"
108        android:layout_marginTop="4dip"
109        android:layout_marginLeft="16dip"
110        android:layout_marginRight="16dip"
111        android:layout_alignParentRight="true"
112        android:singleLine="true"
113        android:ellipsize="marquee"
114        android:textAppearance="?android:attr/textAppearanceMedium"
115        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
116        android:drawablePadding="4dip"
117        />
118
119    <TextView
120        android:id="@+id/status2"
121        android:layout_width="wrap_content"
122        android:layout_height="wrap_content"
123        android:layout_below="@id/status1"
124        android:layout_marginTop="4dip"
125        android:layout_marginLeft="16dip"
126        android:layout_marginRight="16dip"
127        android:layout_alignParentRight="true"
128        android:singleLine="true"
129        android:ellipsize="marquee"
130        android:textAppearance="?android:attr/textAppearanceMedium"
131        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
132        android:drawablePadding="4dip"
133        android:visibility="gone"
134        />
135
136    <TextView
137        android:id="@+id/screenLocked"
138        android:layout_width="wrap_content"
139        android:layout_height="wrap_content"
140        android:layout_below="@id/status2"
141        android:layout_marginLeft="16dip"
142        android:layout_marginRight="16dip"
143        android:layout_alignParentRight="true"
144        android:singleLine="true"
145        android:ellipsize="marquee"
146        android:textAppearance="?android:attr/textAppearanceMedium"
147        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
148        android:layout_marginTop="12dip"
149        android:drawablePadding="4dip"
150        android:visibility="gone"
151        />
152
153    <!-- emergency call button shown when sim is PUKd and tab_selector is hidden -->
154    <Button
155        android:id="@+id/emergencyCallButton"
156        android:layout_width="wrap_content"
157        android:layout_height="wrap_content"
158        android:layout_marginTop="4dip"
159        android:layout_marginRight="16dip"
160        android:drawableLeft="@drawable/lockscreen_emergency_button"
161        android:layout_alignParentRight="true"
162        android:layout_below="@id/screenLocked"
163        style="?android:attr/buttonBarButtonStyle"
164        android:drawablePadding="4dip"
165        android:text="@string/lockscreen_emergency_call"
166        android:visibility="visible"
167        />
168
169    <RelativeLayout
170        android:layout_width="match_parent"
171        android:layout_height="wrap_content"
172        android:layout_alignParentBottom="true"
173        android:gravity="center_horizontal">
174
175        <com.android.internal.widget.multiwaveview.MultiWaveView
176            android:id="@+id/unlock_widget"
177            android:orientation="horizontal"
178            android:layout_width="match_parent"
179            android:layout_height="300dip"
180            android:layout_alignParentBottom="true"
181
182            android:targetDrawables="@array/lockscreen_targets_when_silent"
183            android:handleDrawable="@drawable/ic_lockscreen_handle"
184            android:waveDrawable="@drawable/ic_lockscreen_outerring"
185            android:outerRadius="@dimen/multiwaveview_target_placement_radius"
186            android:snapMargin="@dimen/multiwaveview_snap_margin"
187            android:hitRadius="@dimen/multiwaveview_hit_radius"
188            android:rightChevronDrawable="@drawable/ic_lockscreen_chevron_right"
189            android:horizontalOffset="0dip"
190            android:verticalOffset="60dip"
191            android:feedbackCount="3"
192            android:vibrationDuration="20"
193            />
194
195        <TextView
196            android:id="@+id/carrier"
197            android:layout_width="fill_parent"
198            android:layout_height="wrap_content"
199            android:layout_alignParentBottom="true"
200            android:layout_marginBottom="8dip"
201            android:gravity="center_horizontal"
202            android:singleLine="true"
203            android:ellipsize="marquee"
204            android:textAppearance="?android:attr/textAppearanceMedium"
205            android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
206            android:textColor="?android:attr/textColorSecondary"
207            />
208
209        <!-- "emergency calls only" shown when sim is missing or PUKd -->
210        <TextView
211            android:id="@+id/emergencyCallText"
212            android:layout_width="fill_parent"
213            android:layout_height="wrap_content"
214            android:layout_above="@id/carrier"
215            android:gravity="center_horizontal"
216            android:layout_marginTop="0dip"
217            android:layout_marginRight="8dip"
218            android:text="@string/emergency_calls_only"
219            android:singleLine="true"
220            android:ellipsize="marquee"
221            android:textAppearance="?android:attr/textAppearanceMedium"
222            android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
223            android:textColor="?android:attr/textColorSecondary"
224            />
225
226    </RelativeLayout>
227
228</RelativeLayout>
229
230