1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright 2017 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
18<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
19                                             xmlns:app="http://schemas.android.com/apk/res-auto"
20                                             xmlns:tools="http://schemas.android.com/tools"
21                                             android:id="@+id/frameLayout"
22                                             android:layout_width="match_parent"
23                                             android:layout_height="match_parent"
24                                             tools:background="@drawable/album_jazz_blues">
25
26    <ImageView
27        android:id="@+id/album_art"
28        android:layout_width="match_parent"
29        android:layout_height="match_parent"
30        android:scaleType="fitXY"
31        tools:ignore="ContentDescription" />
32
33    <View
34        android:layout_width="match_parent"
35        android:layout_height="0dp"
36        android:background="#a0ffffff"
37        app:layout_constraintBottom_toBottomOf="@+id/song_artist"
38        app:layout_constraintEnd_toEndOf="parent"
39        app:layout_constraintStart_toStartOf="parent"
40        app:layout_constraintTop_toTopOf="parent"
41        tools:ignore="ContentDescription" />
42
43    <TextView
44        android:id="@+id/song_title"
45        android:layout_width="match_parent"
46        android:layout_height="wrap_content"
47        android:layout_marginTop="0dp"
48        android:gravity="center"
49        android:textAppearance="@style/TextAppearance.AppCompat.Large"
50        app:layout_constraintBottom_toBottomOf="@+id/song_artist"
51        app:layout_constraintEnd_toEndOf="parent"
52        app:layout_constraintStart_toStartOf="parent"
53        app:layout_constraintTop_toTopOf="parent"
54        tools:text="Song Title" />
55
56    <TextView
57        android:id="@+id/song_artist"
58        android:layout_width="match_parent"
59        android:layout_height="wrap_content"
60        android:gravity="center"
61        android:paddingBottom="12dp"
62        android:textAppearance="@style/TextAppearance.AppCompat.Medium"
63        app:layout_constraintEnd_toEndOf="parent"
64        app:layout_constraintStart_toStartOf="parent"
65        app:layout_constraintTop_toBottomOf="@+id/song_title"
66        tools:text="Song Artist" />
67
68    <ImageView
69        android:id="@+id/media_controls"
70        android:layout_width="192dp"
71        android:layout_height="192dp"
72        android:alpha=".9"
73        android:src="@drawable/ic_play_pause_toggle"
74        app:layout_constraintEnd_toEndOf="parent"
75        app:layout_constraintStart_toStartOf="parent"
76        app:layout_constraintTop_toTopOf="@+id/guideline"
77        tools:ignore="ContentDescription" />
78
79    <Button
80        android:id="@+id/button_previous"
81        android:layout_width="50dp"
82        android:layout_height="0dp"
83        android:background="@android:color/transparent"
84        android:contentDescription="@string/label_previous"
85        android:text=""
86        app:layout_constraintBottom_toBottomOf="@+id/media_controls"
87        app:layout_constraintStart_toStartOf="@+id/media_controls"
88        app:layout_constraintTop_toTopOf="@+id/media_controls" />
89
90    <Button
91        android:id="@+id/button_play"
92        android:layout_width="0dp"
93        android:layout_height="0dp"
94        android:background="@android:color/transparent"
95        android:contentDescription="@string/label_play_pause"
96        android:text=""
97        app:layout_constraintBottom_toBottomOf="@+id/media_controls"
98        app:layout_constraintEnd_toStartOf="@+id/button_next"
99        app:layout_constraintStart_toEndOf="@+id/button_previous"
100        app:layout_constraintTop_toTopOf="@+id/media_controls" />
101
102    <Button
103        android:id="@+id/button_next"
104        android:layout_width="50dp"
105        android:layout_height="0dp"
106        android:layout_marginStart="8dp"
107        android:background="@android:color/transparent"
108        android:contentDescription="@string/label_next"
109        android:text=""
110        app:layout_constraintBottom_toBottomOf="@+id/media_controls"
111        app:layout_constraintEnd_toEndOf="@+id/media_controls"
112        app:layout_constraintTop_toTopOf="@+id/media_controls" />
113
114    <android.support.constraint.Guideline
115        android:id="@+id/guideline"
116        android:layout_width="wrap_content"
117        android:layout_height="wrap_content"
118        android:orientation="horizontal"
119        app:layout_constraintGuide_percent=".5" />
120
121    <com.example.android.mediasession.ui.MediaSeekBar
122        android:id="@+id/seekbar_audio"
123        android:layout_width="0dp"
124        android:layout_height="wrap_content"
125        android:layout_marginEnd="16dp"
126        android:layout_marginStart="16dp"
127        android:paddingBottom="16dp"
128        android:paddingTop="16dp"
129        app:layout_constraintBottom_toBottomOf="parent"
130        app:layout_constraintEnd_toEndOf="parent"
131        app:layout_constraintStart_toStartOf="parent" />
132
133</android.support.constraint.ConstraintLayout>