1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright 2019, 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_constraintVertical_chainStyle="packed"
32        app:layout_constraintStart_toStartOf="parent"
33        app:layout_constraintEnd_toEndOf="parent"
34        app:layout_constraintTop_toTopOf="parent"
35        app:layout_constraintBottom_toTopOf="@+id/title"/>
36
37    <TextView
38        android:id="@+id/title"
39        android:layout_width="0dp"
40        android:layout_height="wrap_content"
41        android:gravity="center"
42        android:layout_marginTop="@dimen/art_metadata_margin"
43        style="@style/MetadataPlaybackTitleStyle"
44        app:layout_constraintStart_toStartOf="parent"
45        app:layout_constraintEnd_toEndOf="parent"
46        app:layout_constraintTop_toBottomOf="@id/album_art"
47        app:layout_constraintBottom_toTopOf="@+id/album_title"
48        app:layout_constraintVertical_chainStyle="packed"/>
49
50    <TextView
51        android:id="@+id/artist"
52        android:layout_width="0dp"
53        android:layout_height="wrap_content"
54        android:gravity="center"
55        android:layout_marginTop="@dimen/metadata_title_subtitle_margin"
56        style="@style/MetadataPlaybackSubtitleStyle"
57        app:layout_constraintStart_toStartOf="parent"
58        app:layout_constraintEnd_toEndOf="parent"
59        app:layout_constraintTop_toBottomOf="@id/title"
60        app:layout_constraintBottom_toTopOf="@+id/album_title"/>
61
62
63    <TextView
64        android:id="@+id/album_title"
65        android:layout_width="wrap_content"
66        android:layout_height="wrap_content"
67        android:layout_marginTop="@dimen/metadata_subtitles_margin"
68        style="@style/MetadataPlaybackSubtitleStyle"
69        app:layout_goneMarginTop="@dimen/metadata_title_subtitle_margin"
70        app:layout_constraintStart_toStartOf="parent"
71        app:layout_constraintEnd_toStartOf="@+id/progress_text_container"
72        app:layout_constraintTop_toBottomOf="@id/artist"
73        app:layout_constraintBottom_toBottomOf="parent"
74        app:layout_constraintHorizontal_chainStyle="packed"
75        app:layout_constrainedWidth="true"/>
76
77    <include
78        android:id="@+id/progress_text_container"
79        android:layout_width="wrap_content"
80        android:layout_height="wrap_content"
81        app:layout_constraintStart_toEndOf="@+id/album_title"
82        app:layout_constraintEnd_toEndOf="parent"
83        app:layout_constraintTop_toTopOf="@+id/album_title"
84        app:layout_constraintBottom_toBottomOf="@+id/album_title"
85        layout="@layout/time_progress_text"/>
86
87</androidx.constraintlayout.widget.ConstraintLayout>
88