RetroMusicPlayer/app/src/main/res/layout/fragment_mini_player.xml

92 lines
3.7 KiB
XML
Raw Normal View History

2018-07-27 18:37:33 +05:30
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-08-22 23:24:07 +05:30
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2018-08-01 12:21:27 +05:30
android:layout_width="match_parent"
2020-08-13 18:06:24 +05:30
android:layout_height="56dp"
2018-08-22 23:24:07 +05:30
android:clickable="true"
2019-11-15 22:00:10 +05:30
android:focusable="true"
2018-08-22 23:24:07 +05:30
tools:ignore="UnusedAttribute">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-09-10 01:14:46 +05:30
android:orientation="horizontal"
android:paddingStart="0dp"
2019-05-17 00:22:48 +05:30
android:paddingEnd="8dp">
2018-08-22 23:24:07 +05:30
2019-09-27 21:06:10 +05:30
<androidx.appcompat.widget.AppCompatImageView
2018-08-22 23:24:07 +05:30
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center_vertical"
android:layout_margin="16dp"
android:scaleType="centerCrop"
2020-07-20 02:30:30 +05:30
app:srcCompat="@drawable/ic_keyboard_arrow_up"
2019-12-01 16:58:57 +05:30
app:tint="?attr/colorControlNormal"
tools:ignore="ContentDescription" />
2018-08-22 23:24:07 +05:30
2019-09-27 21:06:10 +05:30
<com.google.android.material.textview.MaterialTextView
2018-11-30 06:36:16 +05:30
android:id="@+id/miniPlayerTitle"
2018-08-22 23:24:07 +05:30
android:layout_width="0dp"
2018-09-23 15:34:43 +05:30
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2018-08-22 23:24:07 +05:30
android:layout_weight="1"
2018-09-23 15:34:43 +05:30
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:freezesText="true"
2018-09-10 01:14:46 +05:30
android:gravity="center"
2018-09-23 15:34:43 +05:30
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
2019-09-27 21:06:10 +05:30
android:textAppearance="@style/TextViewNormal"
2019-12-01 16:58:57 +05:30
android:textColor="?android:attr/textColorPrimary"
2019-10-29 11:36:08 +05:30
tools:text="@tools:sample/lorem/random" />
2018-08-22 23:24:07 +05:30
2019-12-08 20:13:56 +05:30
<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"
2020-07-20 02:30:30 +05:30
app:srcCompat="@drawable/ic_skip_previous"
2019-12-08 20:13:56 +05:30
app:tint="?attr/colorControlNormal" />
2019-11-12 19:49:33 +05:30
<FrameLayout
android:layout_width="wrap_content"
2019-12-01 16:58:57 +05:30
android:layout_height="wrap_content"
android:layout_gravity="center_vertical">
2019-11-12 19:49:33 +05:30
2020-12-03 20:31:27 +05:30
<com.google.android.material.progressindicator.CircularProgressIndicator
android:id="@+id/progressBar"
2020-12-03 20:31:27 +05:30
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-12-03 20:31:27 +05:30
android:layout_gravity="center"
app:trackCornerRadius="16dp"
tools:progress="10" />
2019-11-12 19:49:33 +05:30
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/miniPlayerPlayPauseButton"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:background="?roundSelector"
android:scaleType="center"
2020-07-20 02:30:30 +05:30
app:srcCompat="@drawable/ic_pause"
2019-12-01 16:58:57 +05:30
app:tint="?attr/colorControlNormal"
2019-11-12 19:49:33 +05:30
tools:ignore="ContentDescription" />
</FrameLayout>
2018-08-22 23:24:07 +05:30
2019-12-08 20:13:56 +05:30
<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"
2020-07-20 02:30:30 +05:30
app:srcCompat="@drawable/ic_skip_next"
2019-12-08 20:13:56 +05:30
app:tint="?attr/colorControlNormal" />
2018-08-22 23:24:07 +05:30
</LinearLayout>
</FrameLayout>