1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3** 4** Copyright 2018, 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 clock information in Keyguard. --> 21<com.android.keyguard.KeyguardClockSwitch 22 xmlns:android="http://schemas.android.com/apk/res/android" 23 android:id="@+id/keyguard_clock_container" 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:layout_gravity="center_horizontal|top"> 27 <FrameLayout 28 android:id="@+id/clock_view" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:layout_gravity="center_horizontal" 32 android:layout_alignParentTop="true"> 33 <TextClock 34 android:id="@+id/default_clock_view" 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:layout_gravity="center_horizontal" 38 android:gravity="center_horizontal" 39 android:paddingBottom="@dimen/title_clock_padding" 40 android:letterSpacing="0.02" 41 android:textColor="?attr/wallpaperTextColor" 42 android:singleLine="true" 43 style="@style/widget_big" 44 android:format12Hour="@string/keyguard_widget_12_hours_format" 45 android:format24Hour="@string/keyguard_widget_24_hours_format" 46 android:elegantTextHeight="false" 47 /> 48 <TextClock 49 android:id="@+id/default_clock_view_bold" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:layout_gravity="bottom|center_horizontal" 53 android:gravity="center_horizontal" 54 android:letterSpacing="0.03" 55 android:textColor="?attr/wallpaperTextColor" 56 android:singleLine="true" 57 style="@style/widget_title_bold" 58 android:format12Hour="@string/keyguard_widget_12_hours_format" 59 android:format24Hour="@string/keyguard_widget_24_hours_format" 60 android:elegantTextHeight="false" 61 android:visibility="invisible" 62 /> 63 </FrameLayout> 64 <include layout="@layout/keyguard_status_area" 65 android:id="@+id/keyguard_status_area" 66 android:layout_width="match_parent" 67 android:layout_height="wrap_content" 68 android:layout_below="@id/clock_view" /> 69</com.android.keyguard.KeyguardClockSwitch> 70