Droppers / AnimatedBottomBar

A customizable and easy to use BottomBar navigation view with sleek animations, with support for ViewPager, ViewPager2, NavController, and badges.
MIT License
1.37k stars 109 forks source link

setNestedScrollingEnabled is not respected #41

Open Droppers opened 2 years ago

Droppers commented 2 years ago

It currently intercepts all touch events in a nested scrollview. This is difficult to configure since setNestedScrollingEnabled is ignored, when calling this method the value should also be set for the inner RecyclerView.

Temporary workaround using reflection:

val field = bottom_bar.javaClass.getDeclaredField("recycler")
field.isAccessible = true

val recycler = field.get(bottom_bar) as RecyclerView
recycler.isNestedScrollingEnabled = false