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"
|
2018-07-27 13:07:33 +00:00
|
|
|
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: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:gravity="center"
|
|
|
|
android:minWidth="40dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/progressSlider"
|
2019-08-01 14:13:00 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-01-09 20:53:18 +00:00
|
|
|
app:layout_constraintTop_toTopOf="@id/progressSlider"
|
|
|
|
tools:ignore="RtlHardcoded,RtlSymmetry"
|
2020-06-06 06:33:37 +00:00
|
|
|
tools:text="@tools:sample/date/hhmmss" />
|
2018-07-27 13:07:33 +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"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="8"
|
|
|
|
android:splitTrack="false"
|
|
|
|
android:thumb="@drawable/switch_square"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/songTotalTime"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/songCurrentProgress"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:ignore="RtlHardcoded,UnusedAttribute"
|
|
|
|
tools:progress="20" />
|
2018-07-27 13:07:33 +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"
|
|
|
|
android:gravity="center"
|
|
|
|
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="@id/progressSlider"
|
|
|
|
tools:ignore="RtlHardcoded,RtlSymmetry"
|
2020-06-06 06:33:37 +00:00
|
|
|
tools:text="@tools:sample/date/hhmmss" />
|
2018-07-27 13:07:33 +00:00
|
|
|
|
|
|
|
|
2020-01-06 03:12:32 +00:00
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/songInfo"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:background="@color/md_red_500"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:padding="4dp"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textSize="12sp"
|
|
|
|
app:layout_constrainedWidth="true"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/text"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-01-09 20:53:18 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/progressSlider"
|
2020-01-06 03:12:32 +00:00
|
|
|
tools:text="@tools:sample/full_names" />
|
2019-10-02 16:34:39 +00:00
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/text"
|
|
|
|
android:layout_width="wrap_content"
|
2019-08-01 14:13:00 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-10-02 16:34:39 +00:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:background="@color/md_red_500"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:letterSpacing="0.1"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:padding="4dp"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textAppearance="@style/TextViewBody2"
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constrainedWidth="true"
|
2019-10-29 06:06:08 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/titleContainer"
|
2019-08-01 14:13:00 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-10-02 16:34:39 +00:00
|
|
|
app:layout_constraintHorizontal_bias="0"
|
2019-08-01 14:13:00 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-01-06 03:12:32 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/songInfo"
|
|
|
|
tools:text="@tools:sample/full_names" />
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2019-10-29 06:06:08 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/titleContainer"
|
|
|
|
android:layout_width="match_parent"
|
2019-10-02 16:34:39 +00:00
|
|
|
android:layout_height="wrap_content"
|
2021-09-16 12:59:31 +00:00
|
|
|
android:clickable="false"
|
2019-10-02 16:34:39 +00:00
|
|
|
app:layout_constrainedWidth="true"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/playerMediaControllerContainer"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-09-16 12:59:31 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/text">
|
2019-10-29 06:06:08 +00:00
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:background="@color/md_red_500"
|
2021-09-16 12:59:31 +00:00
|
|
|
android:clickable="true"
|
2019-10-29 06:06:08 +00:00
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:focusable="true"
|
|
|
|
android:fontFeatureSettings="smcp"
|
|
|
|
android:freezesText="true"
|
|
|
|
android:gravity="center"
|
|
|
|
android:letterSpacing="0.2"
|
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
android:padding="4dp"
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textStyle="bold"
|
2020-01-06 03:12:32 +00:00
|
|
|
tools:text="@tools:sample/full_names" />
|
2019-10-29 06:06:08 +00:00
|
|
|
</LinearLayout>
|
2018-07-27 13:07:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
2019-08-01 14:13:00 +00:00
|
|
|
android:id="@+id/playerMediaControllerContainer"
|
2018-07-27 13:07:33 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-08-01 14:13:00 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layoutDirection="ltr"
|
2018-07-27 13:07:33 +00:00
|
|
|
android:paddingStart="16dp"
|
2018-12-04 15:34:26 +00:00
|
|
|
android:paddingEnd="16dp"
|
2019-08-01 14:13:00 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/volumeFragmentContainer"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-10-29 06:06:08 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/titleContainer"
|
2019-08-01 14:13:00 +00:00
|
|
|
tools:ignore="ContentDescription,UnusedAttribute"
|
|
|
|
tools:showIn="@layout/fragment_player_playback_controls">
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2018-08-30 09:29:30 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
2018-12-05 04:29:55 +00:00
|
|
|
android:id="@+id/playPauseButton"
|
2018-07-27 13:07:33 +00:00
|
|
|
android:layout_width="52dp"
|
|
|
|
android:layout_height="52dp"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:background="?colorAccent"
|
|
|
|
android:foreground="?attr/rectSelector"
|
2018-11-05 13:53:07 +00:00
|
|
|
android:padding="12dp"
|
2018-07-27 13:07:33 +00:00
|
|
|
android:scaleType="fitCenter"
|
|
|
|
tools:ignore="MissingPrefix"
|
2020-07-19 21:00:30 +00:00
|
|
|
tools:src="@drawable/ic_pause" />
|
2018-07-27 13:07:33 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginEnd="8dp">
|
|
|
|
|
2018-08-30 09:29:30 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
2018-12-05 04:29:55 +00:00
|
|
|
android:id="@+id/repeatButton"
|
2018-07-27 13:07:33 +00:00
|
|
|
android:layout_width="72dp"
|
|
|
|
android:layout_height="72dp"
|
|
|
|
android:background="?attr/roundSelector"
|
|
|
|
android:padding="22dp"
|
|
|
|
android:scaleType="fitCenter"
|
2020-07-19 21:00:30 +00:00
|
|
|
app:srcCompat="@drawable/ic_repeat"
|
2018-07-27 13:07:33 +00:00
|
|
|
tools:ignore="MissingPrefix" />
|
|
|
|
|
2018-08-30 09:29:30 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
2018-12-05 04:29:55 +00:00
|
|
|
android:id="@+id/shuffleButton"
|
2018-07-27 13:07:33 +00:00
|
|
|
android:layout_width="72dp"
|
|
|
|
android:layout_height="72dp"
|
|
|
|
android:background="?attr/roundSelector"
|
|
|
|
android:padding="22dp"
|
|
|
|
android:scaleType="fitCenter"
|
2020-07-19 21:00:30 +00:00
|
|
|
app:srcCompat="@drawable/ic_shuffle"
|
2018-07-27 13:07:33 +00:00
|
|
|
tools:ignore="MissingPrefix" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2019-08-01 14:13:00 +00:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/volumeFragmentContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
tools:backgroundTint="@color/md_red_400"
|
|
|
|
tools:layout_height="52dp" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|