OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / frameworks / base / core / res / res / layout / keyguard_screen_tab_unlock.xml
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     xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock"
26     android:layout_width="match_parent"
27     android:layout_height="match_parent"
28     android:background="#70000000"
29     android:gravity="center_horizontal"
30     android:id="@+id/root">
31
32     <TextView
33         android:id="@+id/carrier"
34         android:layout_width="wrap_content"
35         android:layout_height="wrap_content"
36         android:layout_alignParentTop="true"
37         android:layout_alignParentRight="true"
38         android:layout_marginTop="10dip"
39         android:layout_marginRight="8dip"
40         android:singleLine="true"
41         android:ellipsize="marquee"
42         android:gravity="right|bottom"
43         android:textAppearance="?android:attr/textAppearanceMedium"
44         />
45
46     <!-- "emergency calls only" shown when sim is missing or PUKd -->
47     <TextView
48         android:id="@+id/emergencyCallText"
49         android:layout_width="wrap_content"
50         android:layout_height="wrap_content"
51         android:layout_below="@id/carrier"
52         android:layout_alignParentRight="true"
53         android:layout_marginTop="0dip"
54         android:layout_marginRight="8dip"
55         android:text="@string/emergency_calls_only"
56         android:textAppearance="?android:attr/textAppearanceSmall"
57         android:textColor="@color/white"
58        />
59
60     <!-- time and date -->
61     <com.android.internal.widget.DigitalClock android:id="@+id/time"
62         android:layout_width="wrap_content"
63         android:layout_height="wrap_content"
64         android:layout_below="@id/carrier"
65         android:layout_marginTop="52dip"
66         android:layout_marginLeft="20dip"
67         android:layout_marginBottom="8dip"
68         >
69
70         <TextView android:id="@+id/timeDisplay"
71             android:layout_width="wrap_content"
72             android:layout_height="wrap_content"
73             android:singleLine="true"
74             android:ellipsize="none"
75             android:textSize="72sp"
76             android:textAppearance="?android:attr/textAppearanceMedium"
77             android:shadowColor="#C0000000"
78             android:shadowDx="0"
79             android:shadowDy="0"
80             android:shadowRadius="3.0"
81             android:layout_marginBottom="10dip"
82             />
83
84
85         <TextView android:id="@+id/am_pm"
86             android:layout_width="wrap_content"
87             android:layout_height="wrap_content"
88             android:layout_toRightOf="@id/timeDisplay"
89             android:layout_alignBaseline="@id/timeDisplay"
90             android:singleLine="true"
91             android:ellipsize="none"
92             android:textSize="22sp"
93             android:layout_marginLeft="8dip"
94             android:textAppearance="?android:attr/textAppearanceMedium"
95             android:shadowColor="#C0000000"
96             android:shadowDx="0"
97             android:shadowDy="0"
98             android:shadowRadius="3.0"
99             />
100
101     </com.android.internal.widget.DigitalClock>
102
103     <TextView
104         android:id="@+id/date"
105         android:layout_width="wrap_content"
106         android:layout_height="wrap_content"
107         android:layout_below="@id/time"
108         android:layout_marginLeft="24dip"
109         android:textAppearance="?android:attr/textAppearanceMedium"
110         />
111
112     <TextView
113         android:id="@+id/status1"
114         android:layout_width="wrap_content"
115         android:layout_height="wrap_content"
116         android:layout_below="@id/date"
117         android:layout_marginTop="4dip"
118         android:layout_marginLeft="24dip"
119         android:textAppearance="?android:attr/textAppearanceMedium"
120         android:drawablePadding="4dip"
121         />
122
123     <TextView
124         android:id="@+id/status2"
125         android:layout_width="wrap_content"
126         android:layout_height="wrap_content"
127         android:layout_below="@id/status1"
128         android:layout_marginTop="4dip"
129         android:layout_marginLeft="24dip"
130         android:textAppearance="?android:attr/textAppearanceMedium"
131         android:drawablePadding="4dip"
132         />
133
134     <TextView
135         android:id="@+id/screenLocked"
136         android:layout_width="wrap_content"
137         android:layout_height="wrap_content"
138         android:layout_below="@id/status2"
139         android:layout_marginLeft="24dip"
140         android:textAppearance="?android:attr/textAppearanceMedium"
141         android:layout_marginTop="12dip"
142         android:drawablePadding="4dip"
143         />
144
145     <com.android.internal.widget.SlidingTab
146         android:id="@+id/tab_selector"
147         android:orientation="horizontal"
148         android:layout_width="match_parent"
149         android:layout_height="wrap_content"
150         android:layout_alignParentBottom="true"
151         android:layout_marginBottom="80dip"
152         />
153
154     <!-- emergency call button shown when sim is PUKd and tab_selector is
155          hidden -->
156     <Button
157         android:id="@+id/emergencyCallButton"
158         android:layout_width="wrap_content"
159         android:layout_height="wrap_content"
160         android:drawableLeft="@drawable/ic_emergency"
161         android:layout_centerInParent="true"
162         android:layout_alignParentBottom="true"
163         android:layout_marginBottom="80dip"
164         style="@style/Widget.Button.Transparent"
165         android:drawablePadding="8dip"
166         android:visibility="gone"
167         />
168
169 </RelativeLayout>
170