detail: show name when scrolling

Show the name of the currently shown detail item when scrolling. This
is just UI candy that I've always wanted to add but couldn't due to
CollapsingToolbarLayout being a mess. This addition circumvents that
by simply doing some reflection magic and hooking the alpha of the
toolbar title to the current scroll state, solving the issue.
This commit is contained in:
OxygenCobalt
2021-11-08 19:54:38 -07:00
parent 1b79eb11e0
commit c5fcc45ee9
9 changed files with 146 additions and 6 deletions
+2 -2
View File
@@ -13,7 +13,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<org.oxycblt.auxio.ui.EdgeAppBarLayout
<org.oxycblt.auxio.detail.DetailAppBarLayout
android:id="@+id/detail_appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -25,7 +25,7 @@
android:id="@+id/detail_toolbar"
style="@style/Widget.Auxio.Toolbar.Icon" />
</org.oxycblt.auxio.ui.EdgeAppBarLayout>
</org.oxycblt.auxio.detail.DetailAppBarLayout>
<org.oxycblt.auxio.ui.EdgeRecyclerView
android:id="@+id/detail_recycler"