1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2020 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<ConstraintSet
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto">
20    <Constraint
21        android:id="@+id/icon"
22        android:layout_width="@dimen/qs_media_icon_size"
23        android:layout_height="@dimen/qs_media_icon_size"
24        android:translationY="@dimen/qs_media_icon_offset"
25        android:translationX="@dimen/qs_media_icon_offset"
26        app:layout_constraintEnd_toEndOf="@id/album_art"
27        app:layout_constraintBottom_toBottomOf="@id/album_art"
28    />
29
30    <Constraint
31        android:id="@+id/media_seamless"
32        android:layout_width="wrap_content"
33        android:layout_height="48dp"
34        app:layout_constraintEnd_toEndOf="parent"
35        app:layout_constraintTop_toTopOf="parent"
36        app:layout_constraintStart_toEndOf="@id/center_vertical_guideline"
37        app:layout_constraintHorizontal_chainStyle="spread_inside"
38        app:layout_constraintHorizontal_bias="1"
39        app:layout_constrainedWidth="true"
40        app:layout_constraintWidth_min="48dp"
41        app:layout_constraintHeight_min="48dp"
42        android:paddingTop="@dimen/qs_media_padding"
43        android:paddingEnd="@dimen/qs_media_padding"
44        android:layout_marginStart="@dimen/qs_center_guideline_padding"
45        android:layout_marginBottom="4dp" />
46
47    <Constraint
48        android:id="@+id/album_art"
49        android:layout_width="@dimen/qs_media_album_size"
50        android:layout_height="@dimen/qs_media_album_size"
51        android:layout_marginTop="@dimen/qs_media_padding"
52        android:layout_marginStart="@dimen/qs_media_padding"
53        android:layout_marginBottom="0dp"
54        app:layout_constraintTop_toTopOf="parent"
55        app:layout_constraintStart_toStartOf="parent"
56        />
57
58    <!-- Song name -->
59    <Constraint
60        android:id="@+id/header_title"
61        android:layout_width="wrap_content"
62        android:layout_height="wrap_content"
63        android:layout_marginTop="26dp"
64        android:layout_marginStart="@dimen/qs_media_info_margin"
65        android:layout_marginEnd="@dimen/qs_media_padding"
66        app:layout_constrainedWidth="true"
67        app:layout_constraintTop_toTopOf="@+id/album_art"
68        app:layout_constraintStart_toEndOf="@id/album_art"
69        app:layout_constraintEnd_toEndOf="parent"
70        app:layout_constraintHorizontal_bias="0"/>
71
72    <!-- Artist name -->
73    <Constraint
74        android:id="@+id/header_artist"
75        android:layout_width="wrap_content"
76        android:layout_height="wrap_content"
77        android:layout_marginEnd="@dimen/qs_media_padding"
78        android:layout_marginBottom="@dimen/qs_media_info_margin"
79        app:layout_constrainedWidth="true"
80        android:layout_marginTop="1dp"
81        app:layout_constraintTop_toBottomOf="@id/header_title"
82        app:layout_constraintStart_toStartOf="@id/header_title"
83        app:layout_constraintEnd_toEndOf="parent"
84        app:layout_constraintHorizontal_bias="0"/>
85
86    <!-- Seek Bar -->
87    <Constraint
88        android:id="@+id/media_progress_bar"
89        android:layout_width="0dp"
90        android:layout_height="wrap_content"
91        android:layout_marginTop="34dp"
92        app:layout_constraintTop_toBottomOf="@id/center_horizontal_guideline"
93        app:layout_constraintStart_toStartOf="parent"
94        app:layout_constraintEnd_toEndOf="parent"
95        />
96
97    <Constraint
98        android:id="@+id/notification_media_progress_time"
99        android:layout_width="0dp"
100        android:layout_height="wrap_content"
101        android:layout_marginEnd="@dimen/qs_media_padding"
102        android:layout_marginStart="@dimen/qs_media_padding"
103        app:layout_constraintTop_toBottomOf="@id/media_progress_bar"
104        app:layout_constraintStart_toStartOf="parent"
105        app:layout_constraintEnd_toEndOf="parent"
106        />
107
108    <Constraint
109        android:id="@+id/action0"
110        android:layout_width="48dp"
111        android:layout_height="48dp"
112        android:layout_marginStart="@dimen/qs_media_padding"
113        android:layout_marginEnd="@dimen/qs_media_action_spacing"
114        android:layout_marginBottom="@dimen/qs_media_action_margin"
115        app:layout_constraintHorizontal_chainStyle="packed"
116        app:layout_constraintLeft_toLeftOf="parent"
117        app:layout_constraintRight_toLeftOf="@id/action1"
118        app:layout_constraintTop_toBottomOf="@id/media_progress_bar"
119        app:layout_constraintBottom_toBottomOf="parent">
120    </Constraint>
121
122    <Constraint
123        android:id="@+id/action1"
124        android:layout_width="48dp"
125        android:layout_height="48dp"
126        android:layout_marginStart="@dimen/qs_media_action_spacing"
127        android:layout_marginEnd="@dimen/qs_media_action_spacing"
128        android:layout_marginBottom="@dimen/qs_media_action_margin"
129        app:layout_constraintLeft_toRightOf="@id/action0"
130        app:layout_constraintRight_toLeftOf="@id/action2"
131        app:layout_constraintTop_toBottomOf="@id/media_progress_bar"
132        app:layout_constraintBottom_toBottomOf="parent">
133    </Constraint>
134
135    <Constraint
136        android:id="@+id/action2"
137        android:layout_width="48dp"
138        android:layout_height="48dp"
139        android:layout_marginStart="@dimen/qs_media_action_spacing"
140        android:layout_marginEnd="@dimen/qs_media_action_spacing"
141        android:layout_marginBottom="@dimen/qs_media_action_margin"
142        app:layout_constraintLeft_toRightOf="@id/action1"
143        app:layout_constraintRight_toLeftOf="@id/action3"
144        app:layout_constraintTop_toBottomOf="@id/media_progress_bar"
145        app:layout_constraintBottom_toBottomOf="parent">
146    </Constraint>
147
148    <Constraint
149        android:id="@+id/action3"
150        android:layout_width="48dp"
151        android:layout_height="48dp"
152        android:layout_marginStart="@dimen/qs_media_action_spacing"
153        android:layout_marginEnd="@dimen/qs_media_action_spacing"
154        android:layout_marginBottom="@dimen/qs_media_action_margin"
155        app:layout_constraintLeft_toRightOf="@id/action2"
156        app:layout_constraintRight_toLeftOf="@id/action4"
157        app:layout_constraintTop_toBottomOf="@id/media_progress_bar"
158        app:layout_constraintBottom_toBottomOf="parent">
159    </Constraint>
160
161    <Constraint
162        android:id="@+id/action4"
163        android:layout_width="48dp"
164        android:layout_height="48dp"
165        android:layout_marginStart="@dimen/qs_media_action_spacing"
166        android:layout_marginEnd="@dimen/qs_media_padding"
167        android:layout_marginBottom="@dimen/qs_media_action_margin"
168        app:layout_constraintHorizontal_chainStyle="packed"
169        app:layout_constraintLeft_toRightOf="@id/action3"
170        app:layout_constraintRight_toRightOf="parent"
171        app:layout_constraintTop_toBottomOf="@id/media_progress_bar"
172        app:layout_constraintBottom_toBottomOf="parent">
173    </Constraint>
174</ConstraintSet>
175