106 lines
4.5 KiB
XML
106 lines
4.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2018, The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/metadata_subcontainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:focusable="false">
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:includeFontPadding="false"
|
|
android:maxLines="@integer/playback_title_text_max_lines"
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="Body 1 Header"/>
|
|
<TextView
|
|
android:id="@+id/subtitle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/metadata_normal_subtitle_margin_top"
|
|
android:layout_marginEnd="@dimen/metadata_normal_subtitle_margin_end"
|
|
android:ellipsize="end"
|
|
android:maxLines="@integer/playback_subtitle_text_max_lines"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/time"
|
|
app:layout_constraintTop_toBottomOf="@+id/title"
|
|
tools:text="Body 2"/>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/title"
|
|
android:gravity="end"
|
|
android:layout_marginTop="@dimen/metadata_normal_time_margin_top">
|
|
|
|
<TextView
|
|
android:id="@+id/time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="@integer/playback_subtitle_text_max_lines"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
tools:text="3:27"/>
|
|
<TextView
|
|
android:id="@+id/time_separator"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="@integer/playback_subtitle_text_max_lines"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:text=" / "
|
|
tools:text=" / "/>
|
|
<TextView
|
|
android:id="@+id/track_length"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="@integer/playback_subtitle_text_max_lines"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
tools:text="3:27"/>
|
|
</LinearLayout>
|
|
<SeekBar
|
|
android:id="@+id/seek_bar"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/metadata_normal_seek_margin_top"
|
|
android:clickable="false"
|
|
android:focusable="false"
|
|
android:paddingEnd="@dimen/playback_seekbar_padding_end"
|
|
android:paddingStart="@dimen/playback_seekbar_padding_start"
|
|
android:progressDrawable="@drawable/seekbar_background"
|
|
android:thumb="@drawable/seekbar_thumb"
|
|
android:splitTrack="false"
|
|
android:progressTint="@color/progress_bar_highlight"
|
|
android:progressBackgroundTint="@color/progress_bar_background"
|
|
android:background="@null"
|
|
android:visibility="invisible"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/subtitle"
|
|
tools:progress="70"
|
|
tools:visibility="visible"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|