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/lockscreen_clock_view"
29        android:layout_width="wrap_content"
30        android:layout_height="wrap_content"
31        android:layout_alignParentStart="true"
32        android:layout_alignParentTop="true"
33        android:paddingStart="@dimen/clock_padding_start">
34        <com.android.keyguard.AnimatableClockView
35            android:id="@+id/animatable_clock_view"
36            android:layout_width="wrap_content"
37            android:layout_height="wrap_content"
38            android:layout_gravity="start"
39            android:gravity="start"
40            android:textSize="@dimen/clock_text_size"
41            android:fontFamily="@font/clock"
42            android:elegantTextHeight="false"
43            android:singleLine="true"
44            android:fontFeatureSettings="pnum"
45            chargeAnimationDelay="350"
46            dozeWeight="200"
47            lockScreenWeight="400"
48        />
49    </FrameLayout>
50    <FrameLayout
51        android:id="@+id/lockscreen_clock_view_large"
52        android:layout_width="match_parent"
53        android:layout_height="wrap_content"
54        android:layout_below="@id/keyguard_slice_view"
55        android:visibility="gone">
56        <com.android.keyguard.AnimatableClockView
57            android:id="@+id/animatable_clock_view_large"
58            android:layout_width="wrap_content"
59            android:layout_height="wrap_content"
60            android:layout_gravity="center"
61            android:gravity="center_horizontal"
62            android:textSize="@dimen/large_clock_text_size"
63            android:fontFamily="@font/clock"
64            android:typeface="monospace"
65            android:elegantTextHeight="false"
66            chargeAnimationDelay="200"
67            dozeWeight="200"
68            lockScreenWeight="400"
69        />
70    </FrameLayout>
71
72    <!-- Not quite optimal but needed to translate these items as a group. The
73         NotificationIconContainer has its own logic for translation. -->
74    <LinearLayout
75        android:id="@+id/keyguard_status_area"
76        android:orientation="vertical"
77        android:layout_width="match_parent"
78        android:layout_height="wrap_content"
79        android:layout_alignParentStart="true"
80        android:layout_below="@id/lockscreen_clock_view">
81
82      <include layout="@layout/keyguard_slice_view"
83               android:id="@+id/keyguard_slice_view"
84               android:layout_width="match_parent"
85               android:layout_height="wrap_content" />
86
87      <com.android.systemui.statusbar.phone.NotificationIconContainer
88          android:id="@+id/left_aligned_notification_icon_container"
89          android:layout_width="match_parent"
90          android:layout_height="@dimen/notification_shelf_height"
91          android:paddingStart="@dimen/below_clock_padding_start_icons"
92          android:visibility="invisible"
93          />
94    </LinearLayout>
95</com.android.keyguard.KeyguardClockSwitch>
96