1 <?xml version="1.0" encoding="utf-8"?>
4 ** Copyright 2009, The Android Open Source Project
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
10 ** http://www.apache.org/licenses/LICENSE-2.0
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.
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.-->
23 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
24 xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock"
25 android:layout_width="match_parent"
26 android:layout_height="match_parent"
27 android:orientation="horizontal"
28 android:background="#70000000"
29 android:id="@+id/root">
33 android:layout_width="0dip"
34 android:layout_height="match_parent"
35 android:layout_weight="1.0"
36 android:layout_marginLeft="24dip"
37 android:gravity="left">
40 android:id="@+id/carrier"
41 android:layout_width="wrap_content"
42 android:layout_height="wrap_content"
43 android:layout_alignParentTop="true"
44 android:layout_marginTop="20dip"
45 android:singleLine="true"
46 android:ellipsize="marquee"
47 android:gravity="right|bottom"
48 android:textAppearance="?android:attr/textAppearanceMedium"
51 <!-- "emergency calls only" shown when sim is missing or PUKd -->
53 android:id="@+id/emergencyCallText"
54 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"
56 android:layout_alignParentTop="true"
57 android:layout_marginTop="20dip"
58 android:text="@string/emergency_calls_only"
59 android:textAppearance="?android:attr/textAppearanceSmall"
60 android:textColor="@color/white"
63 <com.android.internal.widget.DigitalClock android:id="@+id/time"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:layout_below="@id/carrier"
67 android:layout_marginTop="56dip"
68 android:layout_marginBottom="8dip"
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"
81 android:shadowRadius="3.0"
82 android:layout_marginBottom="6dip"
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"
99 android:shadowRadius="3.0"
102 </com.android.internal.widget.DigitalClock>
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:layout_marginTop="6dip"
110 android:textAppearance="?android:attr/textAppearanceMedium"
114 android:id="@+id/status1"
115 android:layout_width="wrap_content"
116 android:layout_height="wrap_content"
117 android:layout_below="@id/date"
118 android:layout_marginTop="6dip"
119 android:textAppearance="?android:attr/textAppearanceMedium"
120 android:drawablePadding="4dip"
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="6dip"
129 android:textAppearance="?android:attr/textAppearanceMedium"
130 android:drawablePadding="4dip"
134 android:id="@+id/screenLocked"
135 android:layout_width="wrap_content"
136 android:layout_height="wrap_content"
137 android:layout_below="@id/status2"
138 android:textAppearance="?android:attr/textAppearanceMedium"
139 android:gravity="center"
140 android:layout_marginTop="12dip"
141 android:drawablePadding="4dip"
147 <com.android.internal.widget.SlidingTab
148 android:id="@+id/tab_selector"
149 android:orientation="vertical"
150 android:layout_width="wrap_content"
151 android:layout_height="match_parent"
152 android:layout_marginRight="80dip"
155 <!-- emergency call button shown when sim is PUKd and tab_selector is
158 android:id="@+id/emergencyCallButton"
159 android:layout_width="wrap_content"
160 android:layout_height="wrap_content"
161 android:drawableLeft="@drawable/ic_emergency"
162 style="@style/Widget.Button.Transparent"
163 android:drawablePadding="8dip"
164 android:layout_marginRight="80dip"
165 android:visibility="gone"