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:layout_marginStart="18dp" 25 app:layout_constraintTop_toTopOf="@id/app_name" 26 app:layout_constraintBottom_toBottomOf="@id/app_name" 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="@dimen/qs_center_guideline_padding" 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/center_vertical_guideline" 40 app:layout_constraintHorizontal_bias="0" 41 /> 42 43 <Constraint 44 android:id="@+id/media_seamless" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 app:layout_constraintEnd_toEndOf="parent" 48 app:layout_constraintTop_toTopOf="parent" 49 app:layout_constraintStart_toEndOf="@id/center_vertical_guideline" 50 app:layout_constraintHorizontal_bias="1" 51 app:layout_constrainedWidth="true" 52 app:layout_constraintWidth_min="60dp" 53 android:layout_marginTop="@dimen/qs_media_panel_outer_padding" 54 android:layout_marginEnd="@dimen/qs_media_panel_outer_padding" 55 android:layout_marginStart="@dimen/qs_center_guideline_padding" 56 /> 57 58 <Constraint 59 android:id="@+id/media_seamless_fallback" 60 android:layout_width="@dimen/qs_seamless_fallback_icon_size" 61 android:layout_height="@dimen/qs_seamless_fallback_icon_size" 62 android:layout_marginEnd="@dimen/qs_seamless_fallback_end_margin" 63 android:layout_marginStart="@dimen/qs_center_guideline_padding" 64 android:alpha="0.5" 65 android:visibility="gone" 66 app:layout_constraintTop_toTopOf="@id/app_name" 67 app:layout_constraintBottom_toBottomOf="@id/app_name" 68 app:layout_constraintStart_toEndOf="@id/center_vertical_guideline" 69 app:layout_constraintEnd_toEndOf="parent" 70 app:layout_constraintHorizontal_bias="1" 71 /> 72 73 <Constraint 74 android:id="@+id/album_art" 75 android:layout_width="@dimen/qs_media_album_size" 76 android:layout_height="@dimen/qs_media_album_size" 77 android:layout_marginTop="14dp" 78 android:layout_marginStart="@dimen/qs_media_panel_outer_padding" 79 app:layout_constraintTop_toBottomOf="@+id/app_name" 80 app:layout_constraintStart_toStartOf="parent" 81 /> 82 83 <!-- Song name --> 84 <Constraint 85 android:id="@+id/header_title" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:layout_marginEnd="@dimen/qs_media_panel_outer_padding" 89 android:layout_marginTop="17dp" 90 android:layout_marginStart="16dp" 91 app:layout_constrainedWidth="true" 92 app:layout_constraintTop_toBottomOf="@+id/app_name" 93 app:layout_constraintStart_toEndOf="@id/album_art" 94 app:layout_constraintEnd_toEndOf="parent" 95 app:layout_constraintHorizontal_bias="0"/> 96 97 <!-- Artist name --> 98 <Constraint 99 android:id="@+id/header_artist" 100 android:layout_width="wrap_content" 101 android:layout_height="wrap_content" 102 android:layout_marginEnd="@dimen/qs_media_panel_outer_padding" 103 android:layout_marginTop="3dp" 104 app:layout_constrainedWidth="true" 105 app:layout_constraintTop_toBottomOf="@id/header_title" 106 app:layout_constraintStart_toStartOf="@id/header_title" 107 app:layout_constraintEnd_toEndOf="parent" 108 app:layout_constraintHorizontal_bias="0"/> 109 110 <!-- Seek Bar --> 111 <Constraint 112 android:id="@+id/media_progress_bar" 113 android:layout_width="0dp" 114 android:layout_height="wrap_content" 115 android:layout_marginTop="3dp" 116 app:layout_constraintTop_toBottomOf="@id/header_artist" 117 app:layout_constraintStart_toStartOf="parent" 118 app:layout_constraintEnd_toEndOf="parent" 119 /> 120 121 <Constraint 122 android:id="@+id/notification_media_progress_time" 123 android:layout_width="0dp" 124 android:layout_height="wrap_content" 125 android:layout_marginTop="38dp" 126 android:layout_marginEnd="@dimen/qs_media_panel_outer_padding" 127 android:layout_marginStart="@dimen/qs_media_panel_outer_padding" 128 app:layout_constraintTop_toBottomOf="@id/header_artist" 129 app:layout_constraintStart_toStartOf="parent" 130 app:layout_constraintEnd_toEndOf="parent" 131 /> 132 133 <Constraint 134 android:id="@+id/action0" 135 android:layout_width="48dp" 136 android:layout_height="48dp" 137 android:layout_marginTop="5dp" 138 android:layout_marginStart="4dp" 139 android:layout_marginEnd="4dp" 140 android:layout_marginBottom="@dimen/qs_media_panel_outer_padding" 141 app:layout_constraintHorizontal_chainStyle="packed" 142 app:layout_constraintLeft_toLeftOf="parent" 143 app:layout_constraintRight_toLeftOf="@id/action1" 144 app:layout_constraintTop_toBottomOf="@id/notification_media_progress_time" 145 app:layout_constraintBottom_toBottomOf="parent"> 146 </Constraint> 147 148 <Constraint 149 android:id="@+id/action1" 150 android:layout_width="48dp" 151 android:layout_height="48dp" 152 android:layout_marginStart="4dp" 153 android:layout_marginEnd="4dp" 154 android:layout_marginBottom="@dimen/qs_media_panel_outer_padding" 155 app:layout_constraintLeft_toRightOf="@id/action0" 156 app:layout_constraintRight_toLeftOf="@id/action2" 157 app:layout_constraintTop_toTopOf="@id/action0" 158 app:layout_constraintBottom_toBottomOf="parent"> 159 </Constraint> 160 161 <Constraint 162 android:id="@+id/action2" 163 android:layout_width="48dp" 164 android:layout_height="48dp" 165 android:layout_marginStart="4dp" 166 android:layout_marginEnd="4dp" 167 android:layout_marginBottom="@dimen/qs_media_panel_outer_padding" 168 app:layout_constraintLeft_toRightOf="@id/action1" 169 app:layout_constraintRight_toLeftOf="@id/action3" 170 app:layout_constraintTop_toTopOf="@id/action0" 171 app:layout_constraintBottom_toBottomOf="parent"> 172 </Constraint> 173 174 <Constraint 175 android:id="@+id/action3" 176 android:layout_width="48dp" 177 android:layout_height="48dp" 178 android:layout_marginStart="4dp" 179 android:layout_marginEnd="4dp" 180 app:layout_constraintLeft_toRightOf="@id/action2" 181 app:layout_constraintRight_toLeftOf="@id/action4" 182 app:layout_constraintTop_toTopOf="@id/action0" 183 android:layout_marginBottom="@dimen/qs_media_panel_outer_padding" 184 app:layout_constraintBottom_toBottomOf="parent"> 185 </Constraint> 186 187 <Constraint 188 android:id="@+id/action4" 189 android:layout_width="48dp" 190 android:layout_height="48dp" 191 android:layout_marginStart="4dp" 192 android:layout_marginEnd="4dp" 193 android:layout_marginBottom="@dimen/qs_media_panel_outer_padding" 194 app:layout_constraintHorizontal_chainStyle="packed" 195 app:layout_constraintLeft_toRightOf="@id/action3" 196 app:layout_constraintRight_toRightOf="parent" 197 app:layout_constraintTop_toTopOf="@id/action0" 198 app:layout_constraintBottom_toBottomOf="parent"> 199 </Constraint> 200</ConstraintSet> 201