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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user