BottomBar
BottomBar copied to clipboard
The library is impacting the Coordinator.Behavior in the whole app
I tried using your library but with just the library added to the project (no use in the java code and not added in a xml), the custom behaviour defined in the app is not working anymore. I use the bottom bar on the main screen and Coordinator.Behavior is overriden and used in 2 other different screens. My custom behavior only contains this:
public class QuickReturnFooterBehavior extends CoordinatorLayout.Behavior<View> {
@Override
public boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout, View child, View directTargetChild, View target, int nestedScrollAxes) {
return (nestedScrollAxes & ViewCompat.SCROLL_AXIS_VERTICAL) != 0;
}
@Override
public void onNestedPreScroll(CoordinatorLayout coordinatorLayout, View child, View target, int dx, int dy, int[] consumed) {
// code to show and hide the footer view
}
}
On the screens using the footer view, when the nested scrollview is scrolled down, the footer view is hidden but then onStartNestedScroll is never called anymore. Unfortunately, because of this issue, I cannot use the BottomBar library. But I think it's an issue worth investigating.