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 </com.android.internal.widget.DigitalClock> 64 65 <TextView 66 android:id="@+id/date" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:layout_below="@id/time" 70 android:layout_marginTop="10dip" 71 android:textAppearance="?android:attr/textAppearanceMedium" 72 android:textSize="22sp" 73 /> 74 75 <TextView 76 android:id="@+id/status" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:layout_marginTop="10dip" 80 android:layout_marginLeft="8dip" 81 android:layout_marginRight="8dip" 82 android:textSize="18sp" 83 android:textAppearance="?android:attr/textAppearanceMedium" 84 android:text="@string/enter_password" 85 android:drawableLeft="@*android:drawable/ic_lock_idle_lock" 86 /> 87 </LinearLayout> 88