More fixes to category hopper

This commit is contained in:
Jays2Kings 2021-03-26 02:20:30 -04:00
parent 2c97b93cbe
commit 28f5a6986f
2 changed files with 6 additions and 6 deletions

View File

@ -615,11 +615,12 @@ class LibraryController(
}
category_hopper_frame.y = -category_hopper_frame.height +
(listOfYs.minOrNull() ?: filter_bottom_sheet.y) +
hopperOffset
hopperOffset +
recycler.translationY
if (view.height - insetBottom < category_hopper_frame.y) {
jumper_category_text.translationY = -(category_hopper_frame.y - (view.height - insetBottom))
jumper_category_text.translationY = -(category_hopper_frame.y - (view.height - insetBottom)) + recycler.translationY
} else {
jumper_category_text.translationY = 0f
jumper_category_text.translationY = recycler.translationY
}
}
@ -913,9 +914,9 @@ class LibraryController(
recycler.animate().translationY(translateY).apply {
setUpdateListener {
activity?.appbar?.y = 0f
updateHopperY()
}
}.start()
category_hopper_frame.animate().translationY(translateY).start()
recycler_shadow.animate().translationY(translateY - 8.dpToPx).start()
recycler_cover.animate().translationY(translateY).start()
recycler_cover.animate().alpha(if (show) 0.75f else 0f).start()

View File

@ -116,8 +116,7 @@
android:id="@+id/category_hopper_frame"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|center"
android:translationZ="50dp">
android:layout_gravity="top|center">
<include layout="@layout/rounded_category_hopper" />