• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:textAlignment="center"
43        android:layout_marginTop="@dimen/art_metadata_margin"
44        style="@style/MetadataPlaybackTitleStyle"
45        app:layout_constraintStart_toStartOf="parent"
46        app:layout_constraintEnd_toEndOf="parent"
47        app:layout_constraintTop_toBottomOf="@id/album_art"
48        app:layout_constraintBottom_toTopOf="@+id/album_title"
49        app:layout_constraintVertical_chainStyle="packed"/>
50
51    <TextView
52        android:id="@+id/artist"
53        android:layout_width="0dp"
54        android:layout_height="wrap_content"
55        android:gravity="center"
56        android:textAlignment="center"
57        android:layout_marginTop="@dimen/metadata_title_subtitle_margin"
58        style="@style/MetadataPlaybackSubtitleStyle"
59        app:layout_constraintStart_toStartOf="parent"
60        app:layout_constraintEnd_toEndOf="parent"
61        app:layout_constraintTop_toBottomOf="@id/title"
62        app:layout_constraintBottom_toTopOf="@+id/album_title"/>
63
64
65    <TextView
66        android:id="@+id/album_title"
67        android:layout_width="wrap_content"
68        android:layout_height="wrap_content"
69        android:layout_marginTop="@dimen/metadata_subtitles_margin"
70        style="@style/MetadataPlaybackSubtitleStyle"
71        app:layout_goneMarginTop="@dimen/metadata_title_subtitle_margin"
72        app:layout_constraintStart_toStartOf="parent"
73        app:layout_constraintEnd_toStartOf="@+id/progress_text_container"
74        app:layout_constraintTop_toBottomOf="@id/artist"
75        app:layout_constraintBottom_toBottomOf="parent"
76        app:layout_constraintHorizontal_chainStyle="packed"
77        app:layout_constrainedWidth="true"/>
78
79    <include
80        android:id="@+id/progress_text_container"
81        android:layout_width="wrap_content"
82        android:layout_height="wrap_content"
83        app:layout_constraintStart_toEndOf="@+id/album_title"
84        app:layout_constraintEnd_toEndOf="parent"
85        app:layout_constraintTop_toTopOf="@+id/album_title"
86        app:layout_constraintBottom_toBottomOf="@+id/album_title"
87        layout="@layout/time_progress_text"/>
88
89</androidx.constraintlayout.widget.ConstraintLayout>
90