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 a view that shows general status information in Keyguard. --> 21 <com.android.keyguard.KeyguardStatusView 22 xmlns:android="http://schemas.android.com/apk/res/android" 23 xmlns:androidprv="http://schemas.android.com/apk/res-auto" 24 android:id="@+id/keyguard_status_view" 25 android:orientation="vertical" 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 androidprv:layout_maxWidth="@dimen/keyguard_security_width" 29 androidprv:layout_maxHeight="@dimen/keyguard_security_height" 30 android:gravity="center_horizontal|top"> 31 <RelativeLayout 32 android:id="@+id/keyguard_clock_container" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:layout_gravity="center_horizontal|top"> 36 <TextClock 37 android:id="@+id/clock_view" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:layout_gravity="center_horizontal" 41 android:layout_centerHorizontal="true" 42 android:layout_alignParentTop="true" 43 android:textColor="@color/clock_white" 44 android:singleLine="true" 45 style="@style/widget_big_thin" 46 android:format12Hour="@string/keyguard_widget_12_hours_format" 47 android:format24Hour="@string/keyguard_widget_24_hours_format" 48 android:layout_marginBottom="@dimen/bottom_text_spacing_digital" /> 49 <com.android.systemui.ChargingView 50 android:id="@+id/battery_doze" 51 android:layout_width="wrap_content" 52 android:layout_height="wrap_content" 53 android:layout_alignTop="@id/clock_view" 54 android:layout_alignBottom="@id/clock_view" 55 android:layout_toEndOf="@id/clock_view" 56 android:visibility="invisible" 57 android:src="@drawable/ic_aod_charging_24dp" 58 android:contentDescription="@string/accessibility_ambient_display_charging" 59 /> 60 61 <include layout="@layout/keyguard_status_area" 62 android:id="@+id/keyguard_status_area" 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content" 65 android:layout_below="@id/clock_view" /> 66 67 <TextView 68 android:id="@+id/owner_info" 69 android:layout_marginLeft="16dp" 70 android:layout_marginRight="16dp" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:layout_marginTop="@dimen/date_owner_info_margin" 74 android:layout_centerHorizontal="true" 75 android:layout_below="@id/keyguard_status_area" 76 android:textColor="@color/clock_gray" 77 android:textSize="@dimen/widget_label_font_size" 78 android:letterSpacing="0.05" 79 android:ellipsize="marquee" 80 android:singleLine="true" /> 81 82 </RelativeLayout> 83 </com.android.keyguard.KeyguardStatusView> 84