• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2011, 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>
27
28    <com.android.internal.widget.DigitalClock android:id="@+id/time"
29        android:layout_width="wrap_content"
30        android:layout_height="wrap_content"
31        android:layout_alignParentTop="true"
32        android:layout_alignParentLeft="true"
33        android:layout_marginTop="8dip"
34        android:layout_marginBottom="8dip"
35        >
36
37        <!-- Because we can't have multi-tone fonts, we render two TextViews, one on
38        top of the other. Hence the redundant layout... -->
39        <TextView android:id="@*android:id/timeDisplayBackground"
40            android:layout_width="wrap_content"
41            android:layout_height="wrap_content"
42            android:singleLine="true"
43            android:ellipsize="none"
44            android:textSize="@dimen/crypt_clock_size"
45            android:textAppearance="?android:attr/textAppearanceMedium"
46            android:textColor="@color/crypt_keeper_clock_background"
47            android:layout_marginBottom="6dip"
48            />
49
50        <TextView android:id="@*android:id/timeDisplayForeground"
51            android:layout_width="wrap_content"
52            android:layout_height="wrap_content"
53            android:singleLine="true"
54            android:ellipsize="none"
55            android:textSize="@dimen/crypt_clock_size"
56            android:textAppearance="?android:attr/textAppearanceMedium"
57            android:textColor="@color/crypt_keeper_clock_foreground"
58            android:layout_alignLeft="@*android:id/timeDisplayBackground"
59            android:layout_alignTop="@*android:id/timeDisplayBackground"
60            android:layout_marginBottom="6dip"
61            />
62
63        <TextView android:id="@*android:id/am_pm"
64            android:layout_width="wrap_content"
65            android:layout_height="wrap_content"
66            android:layout_toRightOf="@*android:id/timeDisplayBackground"
67            android:layout_alignBaseline="@*android:id/timeDisplayBackground"
68            android:singleLine="true"
69            android:ellipsize="none"
70            android:textSize="30sp"
71            android:layout_marginLeft="8dip"
72            android:textAppearance="?android:attr/textAppearanceMedium"
73            android:textColor="@color/crypt_keeper_clock_am_pm"
74            />
75
76    </com.android.internal.widget.DigitalClock>
77
78    <TextView
79        android:id="@+id/date"
80        android:layout_width="wrap_content"
81        android:layout_height="wrap_content"
82        android:layout_below="@id/time"
83        android:layout_marginTop="10dip"
84        android:textAppearance="?android:attr/textAppearanceMedium"
85        android:textSize="22sp"
86        />
87
88    <TextView
89        android:id="@+id/status"
90        android:layout_width="wrap_content"
91        android:layout_height="wrap_content"
92        android:layout_marginTop="10dip"
93        android:layout_marginLeft="8dip"
94        android:layout_marginRight="8dip"
95        android:textSize="18sp"
96        android:textAppearance="?android:attr/textAppearanceMedium"
97        android:text="@string/enter_password"
98        android:drawableLeft="@*android:drawable/ic_lock_idle_lock"
99        />
100</LinearLayout>
101