xref: /aosp_15_r20/frameworks/base/packages/SystemUI/res/xml/large_screen_shade_header.xml (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1<?xml version="1.0" encoding="utf-8"?><!--
2  ~ Copyright (C) 2021 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License.
15  -->
16
17<ConstraintSet xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19    android:id="@+id/large_screen_header_constraint">
20
21    <Constraint android:id="@+id/clock">
22        <Layout
23            android:layout_width="wrap_content"
24            android:layout_height="0dp"
25            app:layout_constraintBottom_toBottomOf="parent"
26            app:layout_constraintStart_toEndOf="@id/begin_guide"
27            app:layout_constraintTop_toTopOf="parent" />
28        <PropertySet android:alpha="1" />
29    </Constraint>
30
31    <Constraint android:id="@+id/date">
32        <Layout
33            android:layout_width="wrap_content"
34            android:layout_height="0dp"
35            android:layout_marginStart="8dp"
36            app:layout_constraintBaseline_toBaselineOf="@id/clock"
37            app:layout_constraintBottom_toBottomOf="parent"
38            app:layout_constraintStart_toEndOf="@id/clock"
39            app:layout_constraintTop_toTopOf="parent" />
40        <PropertySet android:alpha="1" />
41    </Constraint>
42
43    <Constraint android:id="@+id/carrier_group">
44        <Layout
45            android:layout_width="0dp"
46            android:layout_height="0dp"
47            android:layout_gravity="end|center_vertical"
48            app:layout_constraintBottom_toBottomOf="parent"
49            app:layout_constraintEnd_toStartOf="@id/shade_header_system_icons"
50            app:layout_constraintStart_toEndOf="@id/date"
51            app:layout_constraintTop_toTopOf="parent"
52            app:layout_constraintWidth_default="wrap"
53            app:layout_constraintWidth_min="48dp" />
54        <PropertySet android:alpha="1" />
55    </Constraint>
56
57    <Constraint android:id="@+id/shade_header_system_icons">
58        <Layout
59            android:layout_width="wrap_content"
60            android:layout_height="wrap_content"
61            app:layout_constraintBottom_toBottomOf="parent"
62            app:layout_constraintEnd_toStartOf="@id/privacy_container"
63            app:layout_constraintTop_toTopOf="parent"
64            app:layout_constraintStart_toEndOf="@id/carrier_group"/>
65        <PropertySet android:alpha="1" />
66    </Constraint>
67
68    <Constraint android:id="@+id/privacy_container">
69        <Layout
70            android:layout_width="wrap_content"
71            android:layout_height="@dimen/large_screen_shade_header_min_height"
72            app:layout_constraintBottom_toBottomOf="parent"
73            app:layout_constraintEnd_toStartOf="@id/end_guide"
74            app:layout_constraintTop_toTopOf="parent" />
75    </Constraint>
76</ConstraintSet>