1<?xml version="1.0" encoding="utf-8"?>
2<!--
3** Copyright 2017, The Android Open Source Project
4**
5** Licensed under the Apache License, Version 2.0 (the "License");
6** you may not use this file except in compliance with the License.
7** You may obtain a copy of the License at
8**
9**     http://www.apache.org/licenses/LICENSE-2.0
10**
11** Unless required by applicable law or agreed to in writing, software
12** distributed under the License is distributed on an "AS IS" BASIS,
13** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14** See the License for the specific language governing permissions and
15** limitations under the License.
16-->
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:systemui="http://schemas.android.com/apk/res-auto"
20    android:id="@+id/quick_status_bar_date_privacy"
21    android:layout_width="match_parent"
22    android:layout_height="@*android:dimen/quick_qs_offset_height"
23    android:clipChildren="false"
24    android:clipToPadding="false"
25    android:gravity="center"
26    android:layout_gravity="top"
27    android:orientation="horizontal"
28    android:clickable="true"
29    android:minHeight="48dp">
30
31    <FrameLayout
32        android:id="@+id/date_container"
33        android:layout_width="0dp"
34        android:layout_height="match_parent"
35        android:minHeight="48dp"
36        android:layout_weight="1"
37        android:gravity="center_vertical|start" >
38
39        <com.android.systemui.statusbar.policy.VariableDateView
40            android:id="@+id/date"
41            android:layout_width="wrap_content"
42            android:layout_height="wrap_content"
43            android:layout_gravity="start|center_vertical"
44            android:gravity="center_vertical"
45            android:singleLine="true"
46            android:textAppearance="@style/TextAppearance.QS.Status"
47            systemui:longDatePattern="@string/abbrev_wday_month_day_no_year_alarm"
48            systemui:shortDatePattern="@string/abbrev_month_day_no_year"
49        />
50    </FrameLayout>
51
52    <!-- We want this to be centered (to align with notches). In order to do that, the following
53         has to hold (in portrait):
54         * date_container and privacy_container must have the same width and weight
55         * header_text_container must be gone
56         -->
57    <android.widget.Space
58        android:id="@+id/space"
59        android:layout_width="0dp"
60        android:layout_height="match_parent"
61        android:layout_gravity="center_vertical|center_horizontal"
62        android:visibility="gone" />
63
64    <!-- Will hold security footer in landscape with media -->
65    <FrameLayout
66        android:id="@+id/header_text_container"
67        android:layout_height="match_parent"
68        android:layout_width="0dp"
69        android:layout_weight="1"
70        android:paddingStart="16dp"
71        android:paddingEnd="16dp"
72        android:gravity="center"
73    />
74
75    <FrameLayout
76        android:id="@+id/privacy_container"
77        android:layout_width="0dp"
78        android:layout_height="match_parent"
79        android:minHeight="48dp"
80        android:layout_weight="1"
81        android:gravity="center_vertical|end" >
82
83        <include layout="@layout/ongoing_privacy_chip" />
84
85    </FrameLayout>
86</LinearLayout>
87