2018-07-27 13:07:33 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-08-01 14:13:00 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2018-07-27 13:07:33 +00:00
|
|
|
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">
|
|
|
|
|
2020-01-09 20:53:18 +00:00
|
|
|
<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"
|
2020-06-06 06:33:37 +00:00
|
|
|
tools:text="@tools:sample/date/hhmmss" />
|
2019-04-04 06:07:55 +00:00
|
|
|
|
2020-05-20 21:30:13 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatSeekBar
|
2020-01-09 20:53:18 +00:00
|
|
|
android:id="@+id/progressSlider"
|
|
|
|
android:layout_width="0dp"
|
2020-07-17 21:25:04 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-06-09 18:04:22 +00:00
|
|
|
android:maxHeight="2dp"
|
|
|
|
android:progressDrawable="@drawable/color_progress_seek"
|
2020-01-09 20:53:18 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/songTotalTime"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/songCurrentProgress"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:ignore="RtlHardcoded,UnusedAttribute"
|
|
|
|
tools:progress="20" />
|
2019-12-30 04:53:51 +00:00
|
|
|
|
2020-01-09 20:53:18 +00:00
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/songTotalTime"
|
2020-06-06 06:33:37 +00:00
|
|
|
android:layout_width="wrap_content"
|
2020-01-09 20:53:18 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="16dp"
|
2020-01-17 17:19:06 +00:00
|
|
|
android:gravity="end"
|
2020-01-09 20:53:18 +00:00
|
|
|
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"
|
2020-06-06 06:33:37 +00:00
|
|
|
tools:text="@tools:sample/date/hhmmss" />
|
2019-04-04 06:07:55 +00:00
|
|
|
|
2021-09-16 12:59:31 +00:00
|
|
|
<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" />
|
2019-10-29 06:06:08 +00:00
|
|
|
|
2019-10-02 16:34:39 +00:00
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/text"
|
2020-07-17 21:25:04 +00:00
|
|
|
android:layout_width="wrap_content"
|
2019-10-02 16:34:39 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-08-13 17:48:49 +00:00
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:focusable="true"
|
|
|
|
android:freezesText="true"
|
|
|
|
android:gravity="center"
|
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
2020-05-09 09:18:29 +00:00
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
android:paddingVertical="8dp"
|
2020-08-13 17:48:49 +00:00
|
|
|
android:scrollHorizontally="true"
|
|
|
|
android:singleLine="true"
|
2019-10-02 16:34:39 +00:00
|
|
|
android:textAppearance="@style/TextViewBody1"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2020-01-07 13:14:33 +00:00
|
|
|
app:layout_constrainedWidth="true"
|
2020-01-06 03:12:32 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/songInfo"
|
2020-07-17 21:25:04 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-09-08 18:30:20 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/title"
|
2020-07-17 21:25:04 +00:00
|
|
|
tools:text="@tools:sample/full_names" />
|
2019-07-23 18:32:41 +00:00
|
|
|
|
2020-01-06 03:12:32 +00:00
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/songInfo"
|
2020-07-17 21:25:04 +00:00
|
|
|
android:layout_width="wrap_content"
|
2020-01-06 03:12:32 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="2"
|
2020-05-09 09:18:29 +00:00
|
|
|
android:paddingHorizontal="16dp"
|
2020-05-20 21:30:13 +00:00
|
|
|
android:paddingBottom="8dp"
|
2020-01-06 03:12:32 +00:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textSize="12sp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/playPauseButton"
|
2020-07-17 21:25:04 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-01-06 03:12:32 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/text"
|
2020-07-17 21:25:04 +00:00
|
|
|
tools:text="@tools:sample/full_names" />
|
2020-01-06 03:12:32 +00:00
|
|
|
|
2020-01-03 18:40:57 +00:00
|
|
|
<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"
|
2020-07-19 21:00:30 +00:00
|
|
|
app:srcCompat="@drawable/ic_repeat"
|
2020-01-03 18:40:57 +00:00
|
|
|
tools:ignore="MissingPrefix"
|
|
|
|
tools:tint="@color/md_black_1000" />
|
2019-07-23 18:32:41 +00:00
|
|
|
|
2020-01-03 18:40:57 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/previousButton"
|
|
|
|
android:layout_width="wrap_content"
|
2019-08-01 14:13:00 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-01-03 18:40:57 +00:00
|
|
|
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"
|
2020-07-19 21:00:30 +00:00
|
|
|
app:srcCompat="@drawable/ic_skip_previous"
|
2020-01-03 18:40:57 +00:00
|
|
|
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"
|
2019-08-01 14:13:00 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/volumeFragmentContainer"
|
2020-01-03 18:40:57 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/nextButton"
|
2019-08-01 14:13:00 +00:00
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
2020-01-03 18:40:57 +00:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/previousButton"
|
2020-01-06 03:12:32 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/songInfo"
|
2020-07-19 21:00:30 +00:00
|
|
|
app:srcCompat="@drawable/ic_pause"
|
2020-01-03 18:40:57 +00:00
|
|
|
tools:tint="@color/md_black_1000" />
|
2019-08-01 14:13:00 +00:00
|
|
|
|
2020-01-03 18:40:57 +00:00
|
|
|
<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"
|
2020-07-19 21:00:30 +00:00
|
|
|
app:srcCompat="@drawable/ic_skip_next"
|
2020-01-03 18:40:57 +00:00
|
|
|
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"
|
2020-07-19 21:00:30 +00:00
|
|
|
app:srcCompat="@drawable/ic_shuffle"
|
2020-01-03 18:40:57 +00:00
|
|
|
tools:ignore="MissingPrefix"
|
|
|
|
tools:tint="@color/md_black_1000" />
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2019-04-04 06:07:55 +00:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/volumeFragmentContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0"
|
2019-08-01 14:13:00 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-12-05 18:18:54 +00:00
|
|
|
tools:background="@color/md_red_400"
|
2019-08-01 14:13:00 +00:00
|
|
|
tools:layout_height="52dp" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|