104 lines
No EOL
4 KiB
XML
104 lines
No EOL
4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout 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/mini_player_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:background="?colorSecondary"
|
|
android:clickable="true"
|
|
android:focusable="false"
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="8dp">
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
app:tint="?colorOnSurface"
|
|
tools:tint="?colorOnSurface"
|
|
android:id="@+id/miniPlayerImage"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_margin="16dp"
|
|
android:scaleType="centerCrop"
|
|
app:srcCompat="@drawable/ic_keyboard_arrow_up_24dp"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<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:layout_weight="1"
|
|
android:ellipsize="marquee"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:freezesText="true"
|
|
android:gravity="center"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:scrollHorizontally="true"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextViewNormal"
|
|
android:textColor="?colorOnSurface"
|
|
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="6dp"
|
|
app:srcCompat="@drawable/ic_skip_previous_white_24dp"
|
|
app:tint="?colorOnSurface" />
|
|
|
|
<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:padding="6dp"
|
|
android:scaleType="center"
|
|
app:srcCompat="@drawable/ic_pause_white_24dp"
|
|
app:tint="?colorOnSurface"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/actionNext"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:background="?roundSelector"
|
|
android:padding="6dp"
|
|
app:srcCompat="@drawable/ic_skip_next_white_24dp"
|
|
app:tint="?colorOnSurface"
|
|
tools:tint="?colorOnSurface" />
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/actionPlayingQueue"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:background="?roundSelector"
|
|
android:padding="6dp"
|
|
app:srcCompat="@drawable/ic_playlist_play_white_24dp"
|
|
app:tint="?colorOnSurface"
|
|
tools:tint="?colorOnSurface" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="3dp"
|
|
android:progress="20" />
|
|
</FrameLayout> |