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:clipChildren="false"
27    android:layout_gravity="center_horizontal|top">
28    <com.android.keyguard.KeyguardClockFrame
29        android:id="@+id/lockscreen_clock_view"
30        android:layout_width="wrap_content"
31        android:layout_height="@dimen/small_clock_height"
32        android:layout_alignParentStart="true"
33        android:layout_alignParentTop="true"
34        android:clipChildren="false"
35        android:paddingStart="@dimen/clock_padding_start"
36        android:visibility="invisible" />
37    <com.android.keyguard.KeyguardClockFrame
38        android:id="@+id/lockscreen_clock_view_large"
39        android:layout_width="match_parent"
40        android:layout_height="match_parent"
41        android:clipChildren="false"
42        android:visibility="gone" />
43
44    <!-- Not quite optimal but needed to translate these items as a group. The
45         NotificationIconContainer has its own logic for translation. -->
46    <com.android.keyguard.KeyguardStatusAreaView
47        android:id="@+id/keyguard_status_area"
48        android:orientation="vertical"
49        android:layout_width="match_parent"
50        android:layout_height="wrap_content"
51        android:layout_alignParentStart="true"
52        android:layout_below="@id/lockscreen_clock_view">
53
54      <include layout="@layout/keyguard_slice_view"
55               android:id="@+id/keyguard_slice_view"
56               android:layout_width="match_parent"
57               android:layout_height="wrap_content" />
58
59      <com.android.systemui.statusbar.phone.NotificationIconContainer
60          android:id="@+id/left_aligned_notification_icon_container"
61          android:layout_width="match_parent"
62          android:layout_height="@dimen/notification_shelf_height"
63          android:paddingStart="@dimen/below_clock_padding_start_icons"
64          android:visibility="invisible"
65          />
66    </com.android.keyguard.KeyguardStatusAreaView>
67</com.android.keyguard.KeyguardClockSwitch>
68