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

171 lines
7.4 KiB
XML
Raw Normal View History

2018-07-27 18:37:33 +05:30
<?xml version="1.0" encoding="utf-8"?>
2019-08-01 19:43:00 +05:30
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2018-07-27 18:37:33 +05:30
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
2019-10-29 11:36:08 +05:30
<LinearLayout
android:id="@+id/titleContainer"
android:layout_width="wrap_content"
2019-10-02 22:04:39 +05:30
android:layout_height="wrap_content"
2020-05-21 21:30:39 +05:30
android:paddingHorizontal="16dp"
2019-10-02 22:04:39 +05:30
app:layout_constraintBottom_toTopOf="@+id/text"
2019-10-29 11:36:08 +05:30
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
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/TextViewHeadline6"
android:textStyle="bold"
tools:text="@tools:sample/lorem/random" />
</LinearLayout>
2019-08-01 19:43:00 +05:30
2019-10-02 22:04:39 +05:30
<com.google.android.material.textview.MaterialTextView
android:id="@+id/text"
2020-05-21 21:30:39 +05:30
android:layout_width="0dp"
2019-10-02 22:04:39 +05:30
android:layout_height="wrap_content"
android:layout_gravity="center"
android:ellipsize="end"
android:gravity="center"
2020-01-17 23:14:59 +05:30
android:maxLines="1"
2020-05-21 21:30:39 +05:30
android:paddingHorizontal="16dp"
android:textAppearance="@style/TextViewSubtitle1"
2019-10-02 22:04:39 +05:30
app:layout_constraintBottom_toTopOf="@+id/songCurrentProgress"
2020-05-21 21:30:39 +05:30
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2019-10-29 11:36:08 +05:30
app:layout_constraintTop_toBottomOf="@+id/titleContainer"
2019-10-02 22:04:39 +05:30
tools:text="@tools:sample/lorem/random" />
2018-07-27 18:37:33 +05:30
2019-10-02 22:04:39 +05:30
<com.google.android.material.textview.MaterialTextView
android:id="@+id/songCurrentProgress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
2020-05-21 21:30:39 +05:30
android:paddingHorizontal="16dp"
2019-10-02 22:04:39 +05:30
android:textAppearance="@style/TextViewSubtitle2"
2020-01-06 08:42:32 +05:30
app:layout_constraintBottom_toTopOf="@+id/songInfo"
2020-05-21 21:30:39 +05:30
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2019-10-02 22:04:39 +05:30
app:layout_constraintTop_toBottomOf="@+id/text"
tools:text="22.00/ 33.00" />
2019-09-30 00:28:10 +05:30
2020-01-06 08:42:32 +05:30
<com.google.android.material.textview.MaterialTextView
android:id="@+id/songInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:ellipsize="end"
android:gravity="center"
2020-01-17 23:14:59 +05:30
android:maxLines="1"
2020-01-06 08:42:32 +05:30
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:textColor="?android:attr/textColorSecondary"
android:textSize="12sp"
2020-05-21 21:30:39 +05:30
app:layout_constraintBottom_toTopOf="@+id/playPauseButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-01-06 08:42:32 +05:30
app:layout_constraintTop_toBottomOf="@+id/songCurrentProgress"
tools:text="@tools:sample/lorem/random" />
2019-08-01 19:43:00 +05:30
2020-05-21 21:30:39 +05:30
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/repeatButton"
android:layout_width="wrap_content"
2019-10-02 22:04:39 +05:30
android:layout_height="wrap_content"
2020-05-21 21:30:39 +05:30
android:background="?attr/roundSelector"
android:padding="16dp"
app:layout_constraintBottom_toBottomOf="@+id/previousButton"
app:layout_constraintEnd_toStartOf="@+id/previousButton"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/previousButton"
2020-07-20 02:30:30 +05:30
app:srcCompat="@drawable/ic_repeat"
2020-05-21 21:30:39 +05:30
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
2018-07-27 18:37:33 +05:30
2020-05-21 21:30:39 +05:30
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/previousButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/roundSelector"
android:padding="16dp"
app:layout_constraintBottom_toBottomOf="@+id/playPauseButton"
app:layout_constraintEnd_toStartOf="@+id/playPauseButton"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/repeatButton"
app:layout_constraintTop_toTopOf="@+id/playPauseButton"
2020-07-20 02:30:30 +05:30
app:srcCompat="@drawable/ic_skip_previous"
2020-05-21 21:30:39 +05:30
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
2018-07-27 18:37:33 +05:30
2020-05-21 21:30:39 +05:30
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/playPauseButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
app:layout_constraintBottom_toTopOf="@+id/volumeFragmentContainer"
app:layout_constraintEnd_toStartOf="@+id/nextButton"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/previousButton"
app:layout_constraintTop_toBottomOf="@+id/songInfo"
tools:backgroundTint="@color/md_green_500"
tools:srcCompat="@drawable/ic_play_arrow_white_32dp" />
2018-07-27 18:37:33 +05:30
2020-05-21 21:30:39 +05:30
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/nextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/roundSelector"
android:padding="16dp"
app:layout_constraintBottom_toBottomOf="@+id/playPauseButton"
app:layout_constraintEnd_toStartOf="@+id/shuffleButton"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/playPauseButton"
app:layout_constraintTop_toTopOf="@+id/playPauseButton"
2020-07-20 02:30:30 +05:30
app:srcCompat="@drawable/ic_skip_next"
2020-05-21 21:30:39 +05:30
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
2018-07-27 18:37:33 +05:30
2020-05-21 21:30:39 +05:30
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/shuffleButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/roundSelector"
android:padding="16dp"
app:layout_constraintBottom_toBottomOf="@+id/nextButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/nextButton"
app:layout_constraintTop_toTopOf="@+id/nextButton"
2020-07-20 02:30:30 +05:30
app:srcCompat="@drawable/ic_shuffle"
2020-05-21 21:30:39 +05:30
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
2018-07-27 18:37:33 +05:30
2019-08-01 19:43:00 +05:30
<FrameLayout
android:id="@+id/volumeFragmentContainer"
2020-05-21 21:30:39 +05:30
android:layout_width="0dp"
2019-08-01 19:43:00 +05:30
android:layout_height="wrap_content"
android:layout_weight="0"
android:paddingStart="8dp"
android:paddingEnd="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:backgroundTint="@color/md_red_400"
tools:layout_height="52dp" />
</androidx.constraintlayout.widget.ConstraintLayout>