Selim Cinek | 2de5ebb | 2020-05-20 15:39:03 -0700 | [diff] [blame] | 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="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" |
Robert Snoeberger | 0734043 | 2020-06-19 17:33:48 -0400 | [diff] [blame] | 39 | app:layout_constraintEnd_toStartOf="@id/media_seamless_barrier" |
Selim Cinek | 2de5ebb | 2020-05-20 15:39:03 -0700 | [diff] [blame] | 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 |
Robert Snoeberger | 0734043 | 2020-06-19 17:33:48 -0400 | [diff] [blame] | 55 | android:id="@+id/media_seamless_fallback" |
| 56 | android:layout_width="@dimen/qs_seamless_fallback_icon_size" |
| 57 | android:layout_height="@dimen/qs_seamless_fallback_icon_size" |
| 58 | android:layout_marginTop="@dimen/qs_seamless_fallback_top_margin" |
| 59 | android:layout_marginEnd="@dimen/qs_seamless_fallback_end_margin" |
| 60 | android:alpha="0.5" |
| 61 | android:visibility="gone" |
| 62 | app:layout_constraintEnd_toEndOf="parent" |
| 63 | app:layout_constraintTop_toTopOf="parent" |
| 64 | /> |
| 65 | |
| 66 | <Constraint |
Selim Cinek | 2de5ebb | 2020-05-20 15:39:03 -0700 | [diff] [blame] | 67 | android:id="@+id/album_art" |
| 68 | android:layout_width="@dimen/qs_media_album_size" |
| 69 | android:layout_height="@dimen/qs_media_album_size" |
| 70 | android:layout_marginTop="14dp" |
| 71 | android:layout_marginStart="@dimen/qs_media_panel_outer_padding" |
| 72 | app:layout_constraintTop_toBottomOf="@+id/app_name" |
| 73 | app:layout_constraintStart_toStartOf="parent" |
| 74 | /> |
| 75 | |
| 76 | <!-- Song name --> |
| 77 | <Constraint |
| 78 | android:id="@+id/header_title" |
| 79 | android:layout_width="0dp" |
| 80 | android:layout_height="wrap_content" |
| 81 | android:layout_marginEnd="@dimen/qs_media_panel_outer_padding" |
| 82 | android:layout_marginTop="17dp" |
| 83 | android:layout_marginStart="16dp" |
| 84 | app:layout_constraintTop_toBottomOf="@+id/app_name" |
| 85 | app:layout_constraintStart_toEndOf="@id/album_art" |
| 86 | app:layout_constraintEnd_toEndOf="parent" |
| 87 | app:layout_constraintHorizontal_bias="0"/> |
| 88 | |
| 89 | <!-- Artist name --> |
| 90 | <Constraint |
| 91 | android:id="@+id/header_artist" |
| 92 | android:layout_width="0dp" |
| 93 | android:layout_height="wrap_content" |
| 94 | android:layout_marginEnd="@dimen/qs_media_panel_outer_padding" |
| 95 | android:layout_marginTop="3dp" |
| 96 | app:layout_constraintTop_toBottomOf="@id/header_title" |
| 97 | app:layout_constraintStart_toStartOf="@id/header_title" |
| 98 | app:layout_constraintEnd_toEndOf="parent" |
| 99 | app:layout_constraintHorizontal_bias="0"/> |
| 100 | |
| 101 | <!-- Seek Bar --> |
| 102 | <Constraint |
| 103 | android:id="@+id/media_progress_bar" |
| 104 | android:layout_width="0dp" |
| 105 | android:layout_height="wrap_content" |
| 106 | android:layout_marginTop="3dp" |
| 107 | app:layout_constraintTop_toBottomOf="@id/header_artist" |
| 108 | app:layout_constraintStart_toStartOf="parent" |
| 109 | app:layout_constraintEnd_toEndOf="parent" |
| 110 | /> |
| 111 | |
| 112 | <Constraint |
| 113 | android:id="@+id/notification_media_progress_time" |
| 114 | android:layout_width="0dp" |
| 115 | android:layout_height="wrap_content" |
| 116 | android:layout_marginTop="38dp" |
| 117 | android:layout_marginEnd="@dimen/qs_media_panel_outer_padding" |
| 118 | android:layout_marginStart="@dimen/qs_media_panel_outer_padding" |
| 119 | app:layout_constraintTop_toBottomOf="@id/header_artist" |
| 120 | app:layout_constraintStart_toStartOf="parent" |
| 121 | app:layout_constraintEnd_toEndOf="parent" |
| 122 | /> |
| 123 | |
| 124 | <Constraint |
| 125 | android:id="@+id/action0" |
| 126 | android:layout_width="48dp" |
| 127 | android:layout_height="48dp" |
| 128 | android:layout_marginTop="5dp" |
| 129 | android:layout_marginStart="4dp" |
| 130 | android:layout_marginEnd="4dp" |
| 131 | android:layout_marginBottom="@dimen/qs_media_panel_outer_padding" |
| 132 | app:layout_constraintHorizontal_chainStyle="packed" |
| 133 | app:layout_constraintLeft_toLeftOf="parent" |
| 134 | app:layout_constraintRight_toLeftOf="@id/action1" |
| 135 | app:layout_constraintTop_toBottomOf="@id/notification_media_progress_time" |
| 136 | app:layout_constraintBottom_toBottomOf="parent"> |
| 137 | </Constraint> |
| 138 | |
| 139 | <Constraint |
| 140 | android:id="@+id/action1" |
| 141 | android:layout_width="48dp" |
| 142 | android:layout_height="48dp" |
| 143 | android:layout_marginStart="4dp" |
| 144 | android:layout_marginEnd="4dp" |
| 145 | android:layout_marginBottom="@dimen/qs_media_panel_outer_padding" |
| 146 | app:layout_constraintLeft_toRightOf="@id/action0" |
| 147 | app:layout_constraintRight_toLeftOf="@id/action2" |
| 148 | app:layout_constraintTop_toTopOf="@id/action0" |
| 149 | app:layout_constraintBottom_toBottomOf="parent"> |
| 150 | </Constraint> |
| 151 | |
| 152 | <Constraint |
| 153 | android:id="@+id/action2" |
| 154 | android:layout_width="48dp" |
| 155 | android:layout_height="48dp" |
| 156 | android:layout_marginStart="4dp" |
| 157 | android:layout_marginEnd="4dp" |
| 158 | android:layout_marginBottom="@dimen/qs_media_panel_outer_padding" |
| 159 | app:layout_constraintLeft_toRightOf="@id/action1" |
| 160 | app:layout_constraintRight_toLeftOf="@id/action3" |
| 161 | app:layout_constraintTop_toTopOf="@id/action0" |
| 162 | app:layout_constraintBottom_toBottomOf="parent"> |
| 163 | </Constraint> |
| 164 | |
| 165 | <Constraint |
| 166 | android:id="@+id/action3" |
| 167 | android:layout_width="48dp" |
| 168 | android:layout_height="48dp" |
| 169 | android:layout_marginStart="4dp" |
| 170 | android:layout_marginEnd="4dp" |
| 171 | app:layout_constraintLeft_toRightOf="@id/action2" |
| 172 | app:layout_constraintRight_toLeftOf="@id/action4" |
| 173 | app:layout_constraintTop_toTopOf="@id/action0" |
| 174 | android:layout_marginBottom="@dimen/qs_media_panel_outer_padding" |
| 175 | app:layout_constraintBottom_toBottomOf="parent"> |
| 176 | </Constraint> |
| 177 | |
| 178 | <Constraint |
| 179 | android:id="@+id/action4" |
| 180 | android:layout_width="48dp" |
| 181 | android:layout_height="48dp" |
| 182 | android:layout_marginStart="4dp" |
| 183 | android:layout_marginEnd="4dp" |
| 184 | android:layout_marginBottom="@dimen/qs_media_panel_outer_padding" |
Jeff DeCew | afec78f | 2020-06-12 13:57:23 -0400 | [diff] [blame] | 185 | app:layout_constraintHorizontal_chainStyle="packed" |
Selim Cinek | 2de5ebb | 2020-05-20 15:39:03 -0700 | [diff] [blame] | 186 | app:layout_constraintLeft_toRightOf="@id/action3" |
| 187 | app:layout_constraintRight_toRightOf="parent" |
| 188 | app:layout_constraintTop_toTopOf="@id/action0" |
| 189 | app:layout_constraintBottom_toBottomOf="parent"> |
| 190 | </Constraint> |
| 191 | </ConstraintSet> |