1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2021 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
18<ConstraintSet
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:id="@+id/qs_header_constraint"
22>
23
24    <Constraint
25        android:id="@+id/privacy_container">
26        <Layout
27            android:layout_width="wrap_content"
28            android:layout_height="@dimen/large_screen_shade_header_min_height"
29            app:layout_constraintEnd_toEndOf="@id/end_guide"
30            app:layout_constraintTop_toTopOf="parent"
31            app:layout_constraintBottom_toTopOf="@id/carrier_group"
32            app:layout_constraintHorizontal_bias="1"
33            />
34    </Constraint>
35
36    <Constraint
37        android:id="@+id/clock">
38        <Layout
39            android:layout_width="wrap_content"
40            android:layout_height="@dimen/large_screen_shade_header_min_height"
41            app:layout_constraintStart_toStartOf="parent"
42            app:layout_constraintTop_toBottomOf="@id/privacy_container"
43            app:layout_constraintBottom_toBottomOf="@id/carrier_group"
44        />
45        <Transform
46            android:scaleX="@dimen/qqs_expand_clock_scale"
47            android:scaleY="@dimen/qqs_expand_clock_scale"
48            />
49    </Constraint>
50
51    <Constraint
52        android:id="@+id/date">
53        <Layout
54            android:layout_width="wrap_content"
55            android:layout_height="@dimen/new_qs_header_non_clickable_element_height"
56            app:layout_constraintStart_toStartOf="parent"
57            app:layout_constraintBottom_toBottomOf="parent"
58            app:layout_constraintTop_toBottomOf="@id/carrier_group"
59        />
60    </Constraint>
61
62    <!-- ShadeHeaderController helps with managing clock width to layout this view -->
63    <Constraint
64        android:id="@+id/carrier_group">
65        <Layout
66            android:layout_width="0dp"
67            android:layout_height="@dimen/large_screen_shade_header_min_height"
68            app:layout_constraintWidth_min="48dp"
69            app:layout_constraintWidth_default="wrap"
70            app:layout_constraintStart_toStartOf="@id/clock"
71            app:layout_constraintTop_toBottomOf="@id/privacy_container"
72            app:layout_constraintEnd_toEndOf="parent"
73            app:layout_constraintBottom_toTopOf="@id/batteryRemainingIcon"
74            />
75        <PropertySet
76            android:alpha="1"
77            />
78    </Constraint>
79
80    <Constraint
81        android:id="@+id/shade_header_system_icons">
82        <Layout
83            android:layout_width="0dp"
84            android:layout_height="@dimen/new_qs_header_non_clickable_element_height"
85            app:layout_constraintWidth_default="wrap"
86            app:layout_constraintStart_toEndOf="@id/date"
87            app:layout_constraintEnd_toEndOf="parent"
88            app:layout_constraintTop_toTopOf="@id/date"
89            app:layout_constraintBottom_toBottomOf="@id/date"
90            />
91    </Constraint>
92
93</ConstraintSet>