
Create a dedicated playback bar layout. This replaces the old janky observer system with something that handles state better and is just more elegant.
43 lines
No EOL
1.8 KiB
XML
43 lines
No EOL
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout 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"
|
|
tools:context=".playback.queue.QueueFragment">
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
android:id="@+id/queue_coordinator"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:animateLayoutChanges="true"
|
|
android:background="?attr/colorSurface"
|
|
android:orientation="vertical">
|
|
|
|
<org.oxycblt.auxio.ui.LiftAppBarLayout
|
|
android:id="@+id/queue_appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorSurface"
|
|
app:liftOnScroll="true"
|
|
app:liftOnScrollTargetViewId="@id/queue_recycler">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/queue_toolbar"
|
|
style="@style/Widget.Auxio.Toolbar.Icon.Down"
|
|
android:elevation="0dp"
|
|
app:navigationIcon="@drawable/ic_down"
|
|
app:title="@string/lbl_queue" />
|
|
|
|
</org.oxycblt.auxio.ui.LiftAppBarLayout>
|
|
|
|
<org.oxycblt.auxio.ui.EdgeRecyclerView
|
|
android:id="@+id/queue_recycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
android:overScrollMode="ifContentScrolls"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
|
tools:listitem="@layout/item_queue_song" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
</layout> |