2020-02-04 08:09:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
|
|
|
~ Copyright (c) 2020 Hemanth Savarala.
|
|
|
|
~
|
|
|
|
~ Licensed under the GNU General Public License v3
|
|
|
|
~
|
|
|
|
~ This is free software: you can redistribute it and/or modify it under
|
|
|
|
~ the terms of the GNU General Public License as published by
|
|
|
|
~ the Free Software Foundation either version 3 of the License, or (at your option) any later version.
|
|
|
|
~
|
|
|
|
~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
~ See the GNU General Public License for more details.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<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:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
|
|
<code.name.monkey.retromusic.views.StatusBarView
|
|
|
|
android:id="@+id/status_bar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="?attr/colorSurface"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:ignore="UnusedAttribute" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/image"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="@drawable/shadow_up_down"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/close"
|
2020-02-21 20:13:40 +00:00
|
|
|
android:layout_width="52dp"
|
|
|
|
android:layout_height="52dp"
|
2020-02-04 08:09:10 +00:00
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:background="@drawable/color_circle_gradient"
|
|
|
|
android:backgroundTint="@color/semi_transparent"
|
|
|
|
android:padding="8dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/status_bar"
|
2020-07-19 21:00:30 +00:00
|
|
|
app:srcCompat="@drawable/ic_close" />
|
2020-02-04 08:09:10 +00:00
|
|
|
|
2020-08-11 22:20:22 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:layout_width="52dp"
|
|
|
|
android:layout_height="52dp"
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:background="@drawable/color_circle_gradient"
|
|
|
|
android:backgroundTint="@color/semi_transparent"
|
|
|
|
android:padding="8dp"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/songFavourite"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/close"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/status_bar"
|
|
|
|
app:srcCompat="@drawable/ic_car" />
|
|
|
|
|
2020-02-21 20:13:40 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/songFavourite"
|
|
|
|
android:layout_width="52dp"
|
|
|
|
android:layout_height="52dp"
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:background="@drawable/color_circle_gradient"
|
|
|
|
android:backgroundTint="@color/semi_transparent"
|
|
|
|
android:padding="8dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/status_bar"
|
2020-07-19 21:00:30 +00:00
|
|
|
app:srcCompat="@drawable/ic_favorite_border" />
|
2020-02-21 20:13:40 +00:00
|
|
|
|
2020-02-04 08:09:10 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/playPauseButton"
|
|
|
|
android:layout_width="112dp"
|
|
|
|
android:layout_height="112dp"
|
2020-02-05 04:40:47 +00:00
|
|
|
android:layout_marginBottom="42dp"
|
2020-02-04 08:09:10 +00:00
|
|
|
android:background="?roundSelector"
|
2020-07-19 21:00:30 +00:00
|
|
|
android:src="@drawable/ic_pause"
|
2020-02-04 08:09:10 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/repeatButton"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/nextButton"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/previousButton" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/nextButton"
|
|
|
|
android:layout_width="72dp"
|
|
|
|
android:layout_height="72dp"
|
|
|
|
android:background="?roundSelector"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/playPauseButton"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/playPauseButton"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/playPauseButton"
|
2020-07-19 21:00:30 +00:00
|
|
|
app:srcCompat="@drawable/ic_skip_next" />
|
2020-02-04 08:09:10 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/previousButton"
|
|
|
|
android:layout_width="72dp"
|
|
|
|
android:layout_height="72dp"
|
|
|
|
android:background="?roundSelector"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/playPauseButton"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/playPauseButton"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/playPauseButton"
|
2020-07-19 21:00:30 +00:00
|
|
|
app:srcCompat="@drawable/ic_skip_previous" />
|
2020-02-04 08:09:10 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/repeatButton"
|
|
|
|
android:layout_width="72dp"
|
|
|
|
android:layout_height="72dp"
|
|
|
|
android:layout_marginBottom="32dp"
|
|
|
|
android:background="?roundSelector"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/image"
|
2020-02-21 20:13:40 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/shuffleButton"
|
2020-02-04 08:09:10 +00:00
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-07-19 21:00:30 +00:00
|
|
|
app:srcCompat="@drawable/ic_repeat" />
|
2020-02-04 08:09:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/shuffleButton"
|
|
|
|
android:layout_width="72dp"
|
|
|
|
android:layout_height="72dp"
|
|
|
|
android:background="?roundSelector"
|
2020-02-21 20:13:40 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/repeatButton"
|
2020-02-04 08:09:10 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
2020-02-21 20:13:40 +00:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/repeatButton"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/repeatButton"
|
2020-07-19 21:00:30 +00:00
|
|
|
app:srcCompat="@drawable/ic_shuffle" />
|
2020-02-04 08:09:10 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/titleContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
2020-02-21 20:13:40 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/progressSlider"
|
2020-02-04 08:09:10 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/close">
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/songTitle"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="3"
|
2020-08-11 22:20:22 +00:00
|
|
|
android:textAppearance="@style/TextViewHeadline4"
|
2020-02-04 08:09:10 +00:00
|
|
|
android:textColor="@color/md_white_1000"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:text="@tools:sample/lorem/random" />
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/songText"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-08-11 22:20:22 +00:00
|
|
|
android:layout_marginTop="8dp"
|
2020-02-26 16:49:24 +00:00
|
|
|
android:gravity="center"
|
2020-02-04 08:09:10 +00:00
|
|
|
android:maxLines="3"
|
2020-08-11 22:20:22 +00:00
|
|
|
android:textAppearance="@style/TextViewHeadline5"
|
2020-02-04 08:09:10 +00:00
|
|
|
android:textColor="@color/md_grey_200"
|
|
|
|
tools:text="@tools:sample/lorem/random" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatSeekBar
|
|
|
|
android:id="@+id/progressSlider"
|
2021-09-08 18:30:20 +00:00
|
|
|
style="@style/Widget.MaterialComponents.LinearProgressIndicator"
|
2020-02-04 08:09:10 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="8"
|
|
|
|
android:maxHeight="3dp"
|
|
|
|
android:progressDrawable="@drawable/color_progress_seek"
|
|
|
|
android:progressTint="@color/md_white_1000"
|
|
|
|
android:splitTrack="false"
|
|
|
|
android:thumb="@drawable/switch_thumb_material"
|
2020-02-05 04:40:47 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/songCurrentProgress"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-02-04 08:09:10 +00:00
|
|
|
tools:ignore="RtlHardcoded,UnusedAttribute"
|
|
|
|
tools:progress="20" />
|
|
|
|
|
2020-02-05 04:40:47 +00:00
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/songCurrentProgress"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="@color/md_white_1000"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/playPauseButton"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
tools:ignore="RtlHardcoded,RtlSymmetry"
|
2020-07-30 14:11:19 +00:00
|
|
|
tools:text="@tools:sample/date/hhmmss" />
|
2020-02-05 04:40:47 +00:00
|
|
|
|
2020-02-04 08:09:10 +00:00
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/songTotalTime"
|
2020-02-05 04:40:47 +00:00
|
|
|
android:layout_width="wrap_content"
|
2020-02-04 08:09:10 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="@color/md_white_1000"
|
2020-02-05 04:40:47 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/playPauseButton"
|
2020-02-04 08:09:10 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
tools:ignore="RtlHardcoded,RtlSymmetry"
|
2020-07-30 14:11:19 +00:00
|
|
|
tools:text="@tools:sample/date/hhmmss" />
|
2020-02-04 08:09:10 +00:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|