
Give up and add more material elements such as neutral toolbar colors and rounded corners. This is largely for stylistic cohesion. I will keep rounded corners to a minimum though, rounding album covers is a crime against humanitity.
35 lines
No EOL
1.5 KiB
XML
35 lines
No EOL
1.5 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=".detail.DetailFragment">
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<org.oxycblt.auxio.ui.LiftAppBarLayout
|
|
android:id="@+id/detail_appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorSurface"
|
|
app:liftOnScroll="true"
|
|
app:liftOnScrollTargetViewId="@id/detail_recycler">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/detail_toolbar"
|
|
style="@style/Widget.Auxio.Toolbar.Icon" />
|
|
|
|
</org.oxycblt.auxio.ui.LiftAppBarLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/detail_recycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
|
tools:listitem="@layout/item_detail" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
</layout> |