blob: 57e6f363578578f8585b251377d9023b50743aea [file] [log] [blame]
Selim Cinek2de5ebb2020-05-20 15:39:03 -07001<?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="16dp"
23 android:layout_height="16dp"
24 android:layout_marginStart="18dp"
25 android:layout_marginTop="22dp"
26 app:layout_constraintTop_toTopOf="parent"
27 app:layout_constraintStart_toStartOf="parent"
28 />
29
30 <Constraint
31 android:id="@+id/app_name"
32 android:layout_width="0dp"
33 android:layout_height="wrap_content"
34 android:layout_marginEnd="10dp"
35 android:layout_marginStart="10dp"
36 android:layout_marginTop="20dp"
37 app:layout_constraintTop_toTopOf="parent"
38 app:layout_constraintStart_toEndOf="@id/icon"
39 app:layout_constraintEnd_toStartOf="@id/media_seamless"
40 app:layout_constraintHorizontal_bias="0"
41 />
42
43 <Constraint
44 android:id="@+id/media_seamless"
45 android:layout_width="0dp"
46 android:layout_height="wrap_content"
47 app:layout_constraintEnd_toEndOf="parent"
48 app:layout_constraintTop_toTopOf="parent"
49 app:layout_constraintWidth_min="60dp"
50 android:layout_marginTop="@dimen/qs_media_panel_outer_padding"
51 android:layout_marginEnd="@dimen/qs_media_panel_outer_padding"
52 />
53
54 <Constraint
55 android:id="@+id/album_art"
56 android:layout_width="@dimen/qs_media_album_size"
57 android:layout_height="@dimen/qs_media_album_size"
58 android:layout_marginTop="16dp"
59 android:layout_marginStart="@dimen/qs_media_panel_outer_padding"
60 android:layout_marginBottom="24dp"
61 app:layout_constraintTop_toBottomOf="@id/icon"
62 app:layout_constraintStart_toStartOf="parent"
63 app:layout_constraintBottom_toBottomOf="parent"
64 />
65
66 <!-- Song name -->
67 <Constraint
68 android:id="@+id/header_title"
69 android:layout_width="0dp"
70 android:layout_height="wrap_content"
71 android:layout_marginTop="17dp"
72 android:layout_marginStart="16dp"
73 app:layout_constraintTop_toBottomOf="@id/app_name"
74 app:layout_constraintBottom_toTopOf="@id/header_artist"
75 app:layout_constraintStart_toEndOf="@id/album_art"
76 app:layout_constraintEnd_toStartOf="@id/action0"
77 app:layout_constraintHorizontal_bias="0"/>
78
79 <!-- Artist name -->
80 <Constraint
81 android:id="@+id/header_artist"
82 android:layout_width="0dp"
83 android:layout_height="wrap_content"
84 android:layout_marginTop="3dp"
85 android:layout_marginBottom="24dp"
86 app:layout_constraintTop_toBottomOf="@id/header_title"
87 app:layout_constraintStart_toStartOf="@id/header_title"
88 app:layout_constraintEnd_toStartOf="@id/action0"
89 app:layout_constraintBottom_toBottomOf="parent"
90 app:layout_constraintHorizontal_bias="0"/>
91
92 <!-- Seek Bar -->
93 <Constraint
94 android:id="@+id/media_progress_bar"
95 android:layout_width="0dp"
96 android:layout_height="wrap_content"
97 android:alpha="0.0"
98 app:layout_constraintTop_toBottomOf="@id/album_art"
99 app:layout_constraintStart_toStartOf="parent"
100 app:layout_constraintEnd_toEndOf="parent"
101 android:visibility="gone"
102 />
103
104 <Constraint
105 android:id="@+id/notification_media_progress_time"
106 android:alpha="0.0"
107 android:layout_width="0dp"
108 android:layout_height="wrap_content"
109 android:layout_marginTop="35dp"
110 android:layout_marginEnd="@dimen/qs_media_panel_outer_padding"
111 android:layout_marginStart="@dimen/qs_media_panel_outer_padding"
112 app:layout_constraintTop_toBottomOf="@id/album_art"
113 app:layout_constraintStart_toStartOf="parent"
114 app:layout_constraintEnd_toEndOf="parent"
115 android:visibility="gone"
116 />
117
118 <Constraint
119 android:id="@+id/action0"
120 android:layout_width="48dp"
121 android:layout_height="48dp"
122 android:layout_marginStart="4dp"
123 android:layout_marginTop="16dp"
124 android:visibility="gone"
125 app:layout_constraintHorizontal_chainStyle="packed"
126 app:layout_constraintTop_toBottomOf="@id/app_name"
127 app:layout_constraintLeft_toRightOf="@id/header_title"
128 app:layout_constraintRight_toLeftOf="@id/action1"
129 >
130 </Constraint>
131
132 <Constraint
133 android:id="@+id/action1"
134 android:layout_width="48dp"
135 android:layout_height="48dp"
136 android:layout_marginStart="4dp"
137 android:layout_marginEnd="4dp"
138 android:layout_marginTop="18dp"
139 app:layout_constraintTop_toBottomOf="@id/app_name"
140 app:layout_constraintLeft_toRightOf="@id/action0"
141 app:layout_constraintRight_toLeftOf="@id/action2"
142 >
143 </Constraint>
144
145 <Constraint
146 android:id="@+id/action2"
147 android:layout_width="48dp"
148 android:layout_height="48dp"
149 android:layout_marginStart="4dp"
150 android:layout_marginEnd="4dp"
151 android:layout_marginTop="18dp"
152 app:layout_constraintTop_toBottomOf="@id/app_name"
153 app:layout_constraintLeft_toRightOf="@id/action1"
154 app:layout_constraintRight_toLeftOf="@id/action3"
155 >
156 </Constraint>
157
158 <Constraint
159 android:id="@+id/action3"
160 android:layout_width="48dp"
161 android:layout_height="48dp"
162 android:layout_marginStart="4dp"
163 android:layout_marginEnd="4dp"
164 android:layout_marginTop="18dp"
165 app:layout_constraintTop_toBottomOf="@id/app_name"
166 app:layout_constraintLeft_toRightOf="@id/action2"
167 app:layout_constraintRight_toLeftOf="@id/action4"
168 >
169 </Constraint>
170
171 <Constraint
172 android:id="@+id/action4"
173 android:layout_width="48dp"
174 android:layout_height="48dp"
175 android:layout_marginStart="4dp"
176 android:layout_marginEnd="4dp"
177 android:visibility="gone"
178 android:layout_marginTop="18dp"
179 app:layout_constraintTop_toBottomOf="@id/app_name"
180 app:layout_constraintLeft_toRightOf="@id/action3"
181 app:layout_constraintRight_toRightOf="parent"
182 >
183 </Constraint>
184</ConstraintSet>