194 lines
8.5 KiB
XML
Executable File
194 lines
8.5 KiB
XML
Executable File
<?xml version="1.0" encoding="utf-8"?>
|
|
<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:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical"
|
|
tools:ignore="MissingPrefix">
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/songCurrentProgress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:minWidth="40dp"
|
|
android:singleLine="true"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintBottom_toBottomOf="@+id/progressSlider"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/progressSlider"
|
|
tools:ignore="RtlHardcoded,RtlSymmetry"
|
|
tools:text="@tools:sample/date/hhmmss" />
|
|
|
|
<androidx.appcompat.widget.AppCompatSeekBar
|
|
android:id="@+id/progressSlider"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:maxHeight="2dp"
|
|
android:progressDrawable="@drawable/color_progress_seek"
|
|
app:layout_constraintEnd_toStartOf="@id/songTotalTime"
|
|
app:layout_constraintStart_toEndOf="@id/songCurrentProgress"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlHardcoded,UnusedAttribute"
|
|
tools:progress="20" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/songTotalTime"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="16dp"
|
|
android:gravity="end"
|
|
android:minWidth="40dp"
|
|
android:singleLine="true"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintBottom_toBottomOf="@+id/progressSlider"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlHardcoded,RtlSymmetry"
|
|
tools:text="@tools:sample/date/hhmmss" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:ellipsize="marquee"
|
|
android:focusable="true"
|
|
android:freezesText="true"
|
|
android:gravity="center"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:paddingHorizontal="16dp"
|
|
android:scrollHorizontally="true"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextViewHeadline6"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toTopOf="@+id/text"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/progressSlider"
|
|
tools:text="@tools:sample/lorem/random" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="marquee"
|
|
android:focusable="true"
|
|
android:freezesText="true"
|
|
android:gravity="center"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingVertical="8dp"
|
|
android:scrollHorizontally="true"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextViewBody1"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constrainedWidth="true"
|
|
app:layout_constraintBottom_toTopOf="@+id/songInfo"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/title"
|
|
tools:text="@tools:sample/full_names" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/songInfo"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingBottom="8dp"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:textSize="12sp"
|
|
app:layout_constraintBottom_toTopOf="@+id/playPauseButton"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/text"
|
|
tools:text="@tools:sample/full_names" />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
android:id="@+id/repeatButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/roundSelector"
|
|
android:padding="16dp"
|
|
android:scaleType="fitCenter"
|
|
app:layout_constraintBottom_toBottomOf="@+id/previousButton"
|
|
app:layout_constraintEnd_toStartOf="@+id/previousButton"
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/previousButton"
|
|
app:srcCompat="@drawable/ic_repeat"
|
|
tools:ignore="MissingPrefix"
|
|
tools:tint="@color/md_black_1000" />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
android:id="@+id/previousButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/roundSelector"
|
|
android:padding="16dp"
|
|
android:scaleType="fitCenter"
|
|
app:layout_constraintBottom_toBottomOf="@+id/playPauseButton"
|
|
app:layout_constraintEnd_toStartOf="@+id/playPauseButton"
|
|
app:layout_constraintStart_toEndOf="@+id/repeatButton"
|
|
app:layout_constraintTop_toTopOf="@+id/playPauseButton"
|
|
app:srcCompat="@drawable/ic_skip_previous"
|
|
tools:ignore="MissingPrefix"
|
|
tools:tint="@color/md_black_1000" />
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/playPauseButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/roundSelector"
|
|
app:layout_constraintBottom_toTopOf="@+id/volumeFragmentContainer"
|
|
app:layout_constraintEnd_toStartOf="@+id/nextButton"
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
app:layout_constraintStart_toEndOf="@+id/previousButton"
|
|
app:layout_constraintTop_toBottomOf="@+id/songInfo"
|
|
app:srcCompat="@drawable/ic_pause"
|
|
tools:tint="@color/md_black_1000" />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
android:id="@+id/nextButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/roundSelector"
|
|
android:padding="16dp"
|
|
android:scaleType="fitCenter"
|
|
app:layout_constraintBottom_toBottomOf="@+id/playPauseButton"
|
|
app:layout_constraintEnd_toStartOf="@+id/shuffleButton"
|
|
app:layout_constraintStart_toEndOf="@+id/playPauseButton"
|
|
app:layout_constraintTop_toTopOf="@+id/playPauseButton"
|
|
app:srcCompat="@drawable/ic_skip_next"
|
|
tools:ignore="MissingPrefix"
|
|
tools:tint="@color/md_black_1000" />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
android:id="@+id/shuffleButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/roundSelector"
|
|
android:padding="16dp"
|
|
android:scaleType="fitCenter"
|
|
app:layout_constraintBottom_toBottomOf="@+id/nextButton"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/nextButton"
|
|
app:layout_constraintTop_toTopOf="@+id/nextButton"
|
|
app:srcCompat="@drawable/ic_shuffle"
|
|
tools:ignore="MissingPrefix"
|
|
tools:tint="@color/md_black_1000" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/volumeFragmentContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
tools:background="@color/md_red_400"
|
|
tools:layout_height="52dp" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |