So, I have a snippet that uses CoordinatorLayout with the NestedScrollView backend. Inside NestedScrollView there is a ViewPager. Each element of this ViewPager is a Layout coordinator with the NestedScrollView internal interface.
The behavior I want is that when each item in the ViewPager scrolls up and down, my custom BottomBar disappears and reappears.
However, when I scroll up and down, the BottomBar disappears and reappears, but the content in the internal ScrollView does not move. This is problem
The code below can help with any advice.
Things I tried:
- Calling ViewCompat.setNestedScrollingEnabled () for almost every view in the hierarchy that can scroll.
- Calling a requestDisallowInterceptTouchEvent (true) on an external NestedScrollView.
Primary activity:

Snippet with external NestedScrollView:

Each item in the ViewPager:

source
share