PlayerAndroid/app/src/main/res/layout-xlarge/fragment_mini_player.xml

90 lines
3.6 KiB
XML
Raw Normal View History

2018-08-30 09:29:30 +00:00
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-08-30 09:29:30 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2019-11-01 17:41:22 +00:00
android:id="@+id/miniPlayerContent"
2018-08-30 09:29:30 +00:00
android:layout_width="match_parent"
2020-01-24 16:54:08 +00:00
android:layout_height="@dimen/bottom_sheet_peek_1_height"
android:background="?attr/colorSurface"
2018-08-30 09:29:30 +00:00
android:clickable="true"
2020-01-24 16:54:08 +00:00
android:focusable="true"
2018-08-30 09:29:30 +00:00
android:transitionName="@string/transition_mini_player"
tools:ignore="UnusedAttribute">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
2019-09-27 15:36:10 +00:00
<androidx.appcompat.widget.AppCompatImageView
2019-08-01 14:25:53 +00:00
android:id="@+id/miniPlayerImage"
2018-08-30 09:29:30 +00:00
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"
2020-01-28 17:00:28 +00:00
app:tint="?attr/colorControlNormal"
2020-02-05 09:11:01 +00:00
tools:ignore="ContentDescription" />
2018-08-30 09:29:30 +00:00
2019-09-27 15:36:10 +00:00
<com.google.android.material.textview.MaterialTextView
2018-11-30 01:06:16 +00:00
android:id="@+id/miniPlayerTitle"
2018-08-30 09:29:30 +00:00
android:layout_width="0dp"
2018-09-23 10:04:43 +00:00
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2018-08-30 09:29:30 +00:00
android:layout_weight="1"
2018-09-23 10:04:43 +00:00
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"
2019-09-27 15:36:10 +00:00
android:textAppearance="@style/TextViewNormal"
2020-01-28 17:00:28 +00:00
android:textColor="?android:attr/textColorPrimary"
2019-09-27 15:36:10 +00:00
tools:text="Song name and details" />
2018-08-30 09:29:30 +00:00
2019-09-27 15:36:10 +00:00
<androidx.appcompat.widget.AppCompatImageView
2018-11-30 01:06:16 +00:00
android:id="@+id/actionPrevious"
2018-08-30 09:29:30 +00:00
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:background="?roundSelector"
android:padding="8dp"
2019-09-27 15:36:10 +00:00
app:srcCompat="@drawable/ic_skip_previous_white_24dp"
2020-02-05 09:11:01 +00:00
app:tint="?attr/colorControlNormal" />
2018-08-30 09:29:30 +00:00
2019-09-27 15:36:10 +00:00
<androidx.appcompat.widget.AppCompatImageView
2018-11-30 01:06:16 +00:00
android:id="@+id/miniPlayerPlayPauseButton"
2018-08-30 09:29:30 +00:00
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:background="?roundSelector"
android:scaleType="center"
2018-09-23 10:04:43 +00:00
app:srcCompat="@drawable/ic_pause_white_24dp"
2020-01-28 17:00:28 +00:00
app:tint="?attr/colorControlNormal"
2019-09-27 15:36:10 +00:00
tools:ignore="ContentDescription"
2020-02-05 09:11:01 +00:00
tools:tint="?attr/colorControlNormal" />
2019-09-27 15:36:10 +00:00
2018-08-30 09:29:30 +00:00
2019-09-27 15:36:10 +00:00
<androidx.appcompat.widget.AppCompatImageView
2018-11-30 01:06:16 +00:00
android:id="@+id/actionNext"
2018-08-30 09:29:30 +00:00
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginEnd="16dp"
android:background="?roundSelector"
android:padding="8dp"
2019-09-27 15:36:10 +00:00
app:srcCompat="@drawable/ic_skip_next_white_24dp"
2020-02-05 09:11:01 +00:00
app:tint="?attr/colorControlNormal" />
2018-08-30 09:29:30 +00:00
</LinearLayout>
2019-01-28 10:45:51 +00:00
<ProgressBar
2018-11-30 01:06:16 +00:00
android:id="@+id/progressBar"
2018-08-30 09:29:30 +00:00
style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="3dp"
android:progress="20" />
</FrameLayout>