1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright 2018, 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<androidx.constraintlayout.widget.ConstraintLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content">
22
23    <ImageView
24        android:id="@+id/album_art"
25        android:layout_width="@dimen/playback_album_art_size"
26        android:layout_height="@dimen/playback_album_art_size"
27        android:contentDescription="@string/album_art"
28        android:background="@color/album_art_background"
29        android:scaleType="centerCrop"
30        android:transitionName="@string/album_art"
31        app:layout_constraintStart_toStartOf="parent"
32        app:layout_constraintTop_toTopOf="parent"
33        app:layout_constraintBottom_toBottomOf="parent"/>
34
35    <TextView
36        android:id="@+id/title"
37        android:layout_width="0dp"
38        android:layout_height="wrap_content"
39        android:layout_marginStart="@dimen/art_metadata_margin"
40        style="@style/MetadataPlaybackTitleStyle"
41        app:layout_constraintStart_toEndOf="@id/album_art"
42        app:layout_constraintEnd_toEndOf="parent"
43        app:layout_constraintTop_toTopOf="@id/album_art"
44        app:layout_constraintBottom_toTopOf="@+id/artist"
45        app:layout_constraintVertical_chainStyle="packed"/>
46
47    <TextView
48        android:id="@+id/artist"
49        android:layout_width="0dp"
50        android:layout_height="wrap_content"
51        android:layout_marginTop="@dimen/metadata_title_subtitle_margin"
52        style="@style/MetadataPlaybackSubtitleStyle"
53        app:layout_constraintStart_toStartOf="@id/title"
54        app:layout_constraintEnd_toEndOf="parent"
55        app:layout_constraintTop_toBottomOf="@id/title"
56        app:layout_constraintBottom_toTopOf="@+id/album_title"/>
57
58    <TextView
59        android:id="@+id/album_title"
60        android:layout_width="wrap_content"
61        android:layout_height="wrap_content"
62        android:layout_marginTop="@dimen/metadata_subtitles_margin"
63        style="@style/MetadataPlaybackSubtitleStyle"
64        app:layout_goneMarginTop="@dimen/metadata_title_subtitle_margin"
65        app:layout_constraintStart_toStartOf="@id/title"
66        app:layout_constraintEnd_toStartOf="@+id/progress_text_container"
67        app:layout_constraintTop_toBottomOf="@id/artist"
68        app:layout_constraintBottom_toBottomOf="@id/album_art"
69        app:layout_constraintHorizontal_chainStyle="packed"
70        app:layout_constraintHorizontal_bias="0.0"
71        app:layout_constrainedWidth="true"/>
72
73    <include
74        android:id="@+id/progress_text_container"
75        android:layout_width="wrap_content"
76        android:layout_height="wrap_content"
77        app:layout_constraintStart_toEndOf="@+id/album_title"
78        app:layout_constraintEnd_toEndOf="parent"
79        app:layout_constraintTop_toTopOf="@+id/album_title"
80        app:layout_constraintBottom_toBottomOf="@+id/album_title"
81        layout="@layout/time_progress_text"/>
82
83</androidx.constraintlayout.widget.ConstraintLayout>
84