140 lines
5.5 KiB
XML
140 lines
5.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.dkanada.gramophone.views.StatusBarView
|
|
android:id="@+id/player_status_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/status_bar_padding" />
|
|
|
|
<com.dkanada.gramophone.views.StatusBarView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/status_bar_padding"
|
|
android:background="@color/twenty_percent_black_overlay" />
|
|
|
|
</FrameLayout>
|
|
|
|
<com.sothree.slidinguppanel.SlidingUpPanelLayout
|
|
android:id="@+id/player_sliding_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clickable="false"
|
|
android:focusable="true"
|
|
android:gravity="bottom"
|
|
app:umanoPanelHeight="0dp"
|
|
app:umanoScrollableView="@+id/player_recycler_view"
|
|
app:umanoShadowHeight="0dp">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/player_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.dkanada.gramophone.views.WidthFitSquareLayout
|
|
android:id="@+id/album_cover_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<fragment
|
|
android:id="@+id/player_album_cover_fragment"
|
|
class="com.dkanada.gramophone.fragments.player.PlayerAlbumCoverFragment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</com.dkanada.gramophone.views.WidthFitSquareLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/toolbar_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/toolbar_scrim_height"
|
|
android:background="@drawable/toolbar_gradient">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/player_toolbar"
|
|
style="@style/Toolbar"
|
|
android:background="@android:color/transparent" />
|
|
|
|
</FrameLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/player_panel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<fragment
|
|
android:id="@+id/playback_controls_fragment"
|
|
class="com.dkanada.gramophone.fragments.player.flat.FlatPlayerPlaybackControlsFragment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<!-- necessary for the drag sorting to work at the top -->
|
|
<View
|
|
android:id="@+id/draggable_area"
|
|
android:layout_width="72dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBottom="@+id/player_panel_content"
|
|
android:layout_alignTop="@+id/player_panel_content"
|
|
android:layout_marginTop="128dp" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/player_panel_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="4dp"
|
|
android:layout_marginBottom="4dp"
|
|
android:background="@drawable/shadow_down" />
|
|
|
|
<include
|
|
android:id="@+id/current_song"
|
|
layout="@layout/item_list" />
|
|
|
|
<TextView
|
|
android:id="@+id/player_queue_sub_header"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:gravity="center_vertical"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:text="@string/up_next"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
|
android:textColor="?android:textColorSecondary" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/player_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:requiresFadingEdge="vertical" />
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.sothree.slidinguppanel.SlidingUpPanelLayout>
|
|
|
|
</LinearLayout>
|