mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-21 01:25:19 +01:00
109 lines
No EOL
4.5 KiB
XML
109 lines
No EOL
4.5 KiB
XML
<?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:id="@+id/miniPlayerContent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/mini_player_height"
|
|
android:background="?attr/colorSurface"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:transitionName="@string/transition_mini_player"
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/imageContainer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/image"
|
|
android:layout_width="38dp"
|
|
android:layout_height="38dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:scaleType="centerCrop"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@drawable/default_album_art" />
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/miniPlayerTitle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:ellipsize="marquee"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:freezesText="true"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:paddingHorizontal="16dp"
|
|
android:scrollHorizontally="true"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextViewNormal"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
app:layout_constrainedWidth="true"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/actionPrevious"
|
|
app:layout_constraintStart_toEndOf="@id/imageContainer"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="Song name and details" />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/actionPrevious"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:background="?roundSelector"
|
|
android:padding="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/miniPlayerPlayPauseButton"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_skip_previous_white_24dp"
|
|
app:tint="?attr/colorControlNormal" />
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/miniPlayerPlayPauseButton"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:background="?roundSelector"
|
|
android:scaleType="center"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/actionNext"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_pause_white_24dp"
|
|
app:tint="?attr/colorControlNormal"
|
|
tools:ignore="ContentDescription"
|
|
tools:tint="?attr/colorControlNormal" />
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/actionNext"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="16dp"
|
|
android:background="?roundSelector"
|
|
android:padding="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_skip_next_white_24dp"
|
|
app:tint="?attr/colorControlNormal" />
|
|
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal"
|
|
android:layout_width="0dp"
|
|
android:layout_height="3dp"
|
|
android:progress="20"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |