mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 00:51:47 +01:00
More fixes to category hopper
This commit is contained in:
parent
2c97b93cbe
commit
28f5a6986f
@ -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()
|
||||
|
@ -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" />
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user