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

174 lines
8.1 KiB
XML
Raw Normal View History

2020-05-18 01:28:04 +05:30
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
2022-01-02 10:38:53 +05:30
android:background="?attr/colorSurface"
android:clickable="true"
android:focusable="true">
2020-05-18 01:28:04 +05:30
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/colorBackground"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="48dp">
<androidx.fragment.app.FragmentContainerView
2020-05-18 01:28:04 +05:30
android:id="@+id/playerAlbumCoverFragment"
android:name="code.name.monkey.retromusic.fragments.player.PlayerAlbumCoverFragment"
android:layout_width="0dp"
2020-06-07 00:27:28 +05:30
android:layout_height="0dp"
2020-05-18 01:28:04 +05:30
app:layout_constrainedHeight="true"
app:layout_constraintBottom_toTopOf="@id/playbackControlsFragment"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:layout="@layout/fragment_album_full_cover" />
<View
android:id="@+id/mask"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@drawable/shadow_up_full_theme"
app:layout_constraintBottom_toBottomOf="@id/playerAlbumCoverFragment"
app:layout_constraintEnd_toEndOf="@id/playerAlbumCoverFragment"
app:layout_constraintStart_toStartOf="@id/playerAlbumCoverFragment"
app:layout_constraintTop_toTopOf="@id/playerAlbumCoverFragment" />
<include
android:id="@+id/playbackControlsFragment"
layout="@layout/fragment_gradient_controls"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constrainedHeight="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/playerAlbumCoverFragment" />
<FrameLayout
android:id="@+id/statusBarContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<include
android:id="@+id/status_bar_layout"
layout="@layout/status_bar" />
2020-05-18 01:28:04 +05:30
</FrameLayout>
<androidx.fragment.app.FragmentContainerView
android:id="@+id/cover_lyrics"
android:name="code.name.monkey.retromusic.fragments.other.CoverLyricsFragment"
android:layout_width="match_parent"
android:layout_height="0dp"
android:elevation="20dp"
app:layout_constraintBottom_toBottomOf="@+id/playerAlbumCoverFragment"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/statusBarContainer" />
2020-05-18 01:28:04 +05:30
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/playerQueueSheet"
style="@style/BottomSheetStyle"
2020-05-18 01:28:04 +05:30
android:layout_width="match_parent"
android:layout_height="match_parent"
app:behavior_hideable="false"
2021-10-23 18:29:03 +05:30
app:gestureInsetBottomIgnored="true"
2020-05-18 01:28:04 +05:30
app:layout_behavior="code.name.monkey.retromusic.RetroBottomSheetBehavior">
<LinearLayout
android:id="@+id/container"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@color/twenty_percent_black_overlay"
app:layout_constrainedHeight="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintWidth_default="spread"
tools:background="@color/md_red_500">
2020-05-18 01:28:04 +05:30
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/queueIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:padding="14dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/nextSongLabel"
app:layout_constraintStart_toStartOf="parent"
2020-07-20 02:30:30 +05:30
app:srcCompat="@drawable/ic_queue_music" />
2020-05-18 01:28:04 +05:30
<com.google.android.material.textview.MaterialTextView
android:id="@+id/nextSong"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:ellipsize="end"
android:gravity="center_vertical"
android:maxLines="1"
android:textAppearance="@style/TextViewSubtitle1"
app:layout_constraintBottom_toBottomOf="@id/queueIcon"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHeight_default="wrap"
app:layout_constraintStart_toEndOf="@id/queueIcon"
app:layout_constraintTop_toTopOf="@id/queueIcon" />
2020-05-18 01:28:04 +05:30
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/repeatButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/roundSelector"
2020-10-12 20:25:31 +05:30
android:clickable="true"
android:focusable="true"
2020-05-18 01:28:04 +05:30
android:padding="14dp"
android:scaleType="fitCenter"
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-18 01:28:04 +05:30
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/shuffleButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/roundSelector"
2020-10-12 20:25:31 +05:30
android:clickable="true"
android:focusable="true"
2020-05-18 01:28:04 +05:30
android:padding="14dp"
android:scaleType="fitCenter"
app:layout_constraintBottom_toBottomOf="@+id/nextButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
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-18 01:28:04 +05:30
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="0dp"
android:layout_height="0dp"
2020-06-07 00:27:28 +05:30
android:background="?attr/colorSurface"
android:overScrollMode="@integer/overScrollMode"
2021-12-12 12:35:46 +05:30
app:layout_constraintBottom_toBottomOf="parent"
2020-05-18 01:28:04 +05:30
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/container"
tools:listitem="@layout/item_list" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>