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    xmlns:tools="http://schemas.android.com/tools"
21    android:id="@+id/metadata_subcontainer"
22    android:layout_width="match_parent"
23    android:layout_height="wrap_content"
24    android:focusable="false">
25
26    <TextView
27        android:id="@+id/title"
28        android:layout_width="0dp"
29        android:layout_height="wrap_content"
30        android:ellipsize="end"
31        android:includeFontPadding="false"
32        android:maxLines="@integer/playback_title_text_max_lines"
33        android:textAppearance="?android:attr/textAppearanceLarge"
34        app:layout_constraintEnd_toEndOf="parent"
35        app:layout_constraintStart_toStartOf="parent"
36        app:layout_constraintTop_toTopOf="parent"
37        tools:text="Body 1 Header"/>
38    <TextView
39        android:id="@+id/subtitle"
40        android:layout_width="0dp"
41        android:layout_height="wrap_content"
42        android:layout_marginTop="@dimen/metadata_normal_subtitle_margin_top"
43        android:layout_marginEnd="@dimen/metadata_normal_subtitle_margin_end"
44        android:ellipsize="end"
45        android:maxLines="@integer/playback_subtitle_text_max_lines"
46        android:textAppearance="?android:attr/textAppearanceMedium"
47        app:layout_constraintStart_toStartOf="parent"
48        app:layout_constraintEnd_toStartOf="@+id/time"
49        app:layout_constraintTop_toBottomOf="@+id/title"
50        tools:text="Body 2"/>
51    <LinearLayout
52        android:layout_width="match_parent"
53        android:layout_height="wrap_content"
54        android:orientation="horizontal"
55        app:layout_constraintEnd_toEndOf="parent"
56        app:layout_constraintTop_toBottomOf="@+id/title"
57        android:gravity="end"
58        android:layout_marginTop="@dimen/metadata_normal_time_margin_top">
59
60        <TextView
61            android:id="@+id/time"
62            android:layout_width="wrap_content"
63            android:layout_height="wrap_content"
64            android:maxLines="@integer/playback_subtitle_text_max_lines"
65            android:textAppearance="?android:attr/textAppearanceMedium"
66            tools:text="3:27"/>
67        <TextView
68            android:id="@+id/time_separator"
69            android:layout_width="wrap_content"
70            android:layout_height="wrap_content"
71            android:maxLines="@integer/playback_subtitle_text_max_lines"
72            android:textAppearance="?android:attr/textAppearanceMedium"
73            android:text=" / "
74            tools:text=" / "/>
75        <TextView
76            android:id="@+id/track_length"
77            android:layout_width="wrap_content"
78            android:layout_height="wrap_content"
79            android:maxLines="@integer/playback_subtitle_text_max_lines"
80            android:textAppearance="?android:attr/textAppearanceMedium"
81            tools:text="3:27"/>
82    </LinearLayout>
83    <SeekBar
84        android:id="@+id/seek_bar"
85        android:layout_width="0dp"
86        android:layout_height="wrap_content"
87        android:layout_marginTop="@dimen/metadata_normal_seek_margin_top"
88        android:clickable="false"
89        android:focusable="false"
90        android:paddingEnd="@dimen/playback_seekbar_padding_end"
91        android:paddingStart="@dimen/playback_seekbar_padding_start"
92        android:progressDrawable="@drawable/seekbar_background"
93        android:thumb="@drawable/seekbar_thumb"
94        android:splitTrack="false"
95        android:progressTint="@color/progress_bar_highlight"
96        android:progressBackgroundTint="@color/progress_bar_background"
97        android:background="@null"
98        android:visibility="invisible"
99        app:layout_constraintStart_toStartOf="parent"
100        app:layout_constraintEnd_toEndOf="parent"
101        app:layout_constraintTop_toBottomOf="@+id/subtitle"
102        tools:progress="70"
103        tools:visibility="visible"/>
104
105</androidx.constraintlayout.widget.ConstraintLayout>
106