mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 02:13:33 +00:00
132 lines
6 KiB
XML
132 lines
6 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<androidx.core.widget.NestedScrollView
|
||
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
|
android:id="@+id/player_nested_scroll_view"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:background="@color/cardColor"
|
||
|
|
app:elevation="8dp">
|
||
|
|
|
||
|
|
<FrameLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
|
||
|
|
<include
|
||
|
|
android:id="@+id/player_header_layout"
|
||
|
|
layout="@layout/player_header_bottom_sheet"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="@dimen/bottom_sheet_peek_height"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
||
|
|
|
||
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
|
android:id="@+id/player_big_layout"
|
||
|
|
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">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/collapse_bottom_sheet_button"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:background="@android:color/transparent"
|
||
|
|
android:paddingStart="24dp"
|
||
|
|
android:paddingTop="20dp"
|
||
|
|
android:text="Now playing"
|
||
|
|
android:textColor="@color/titleTextColor"
|
||
|
|
android:textSize="22sp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<androidx.viewpager2.widget.ViewPager2
|
||
|
|
android:id="@+id/player_song_cover_view_pager"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="0dp"
|
||
|
|
android:layout_marginTop="20dp"
|
||
|
|
app:layout_constraintDimensionRatio="H,1:1"
|
||
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
||
|
|
app:layout_constraintRight_toRightOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/collapse_bottom_sheet_button" />
|
||
|
|
|
||
|
|
<ProgressBar
|
||
|
|
android:id="@+id/player_big_progress_bar"
|
||
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_marginStart="28dp"
|
||
|
|
android:layout_marginTop="18dp"
|
||
|
|
android:layout_marginEnd="28dp"
|
||
|
|
android:progress="50"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/player_song_cover_view_pager" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/player_song_title_label"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:paddingStart="24dp"
|
||
|
|
android:layout_marginTop="18dp"
|
||
|
|
android:text="@string/label_placeholder"
|
||
|
|
android:textColor="@color/titleTextColor"
|
||
|
|
android:textSize="22sp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/player_big_progress_bar" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/player_artist_name_label"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:paddingStart="24dp"
|
||
|
|
android:text="@string/label_placeholder"
|
||
|
|
android:textColor="@color/subtitleTextColor"
|
||
|
|
android:textSize="14sp"
|
||
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/player_song_title_label" />
|
||
|
|
|
||
|
|
<ToggleButton
|
||
|
|
android:id="@+id/button_favorite"
|
||
|
|
android:layout_width="26dp"
|
||
|
|
android:layout_height="26dp"
|
||
|
|
android:background="@drawable/button_favorite_selector"
|
||
|
|
android:checked="false"
|
||
|
|
android:gravity="center_vertical"
|
||
|
|
android:layout_marginTop="24dp"
|
||
|
|
android:layout_marginEnd="24dp"
|
||
|
|
android:text=""
|
||
|
|
android:textOff=""
|
||
|
|
android:textOn=""
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/player_big_progress_bar" />
|
||
|
|
|
||
|
|
|
||
|
|
<View style="@style/Divider"
|
||
|
|
android:id="@+id/player_divider"
|
||
|
|
android:layout_marginTop="24dp"
|
||
|
|
android:layout_marginStart="18dp"
|
||
|
|
android:layout_marginEnd="18dp"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/player_artist_name_label"/>
|
||
|
|
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:id="@+id/player_queue_recycler_view"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:clipToPadding="false"
|
||
|
|
android:paddingTop="18dp"
|
||
|
|
android:paddingBottom="@dimen/global_padding_bottom"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/player_divider"/>
|
||
|
|
|
||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
</FrameLayout>
|
||
|
|
</androidx.core.widget.NestedScrollView>
|