Original version does not work with view inside SwipeRefreshLayout, because Decorator handled OnTouchEvent.
I added a new adapter for NestedScrollView with a boolean to state whether user wants to enable compatibility to work with SwipeRefreshLayout.
Original version does not work with view inside SwipeRefreshLayout, because Decorator handled OnTouchEvent. I added a new adapter for NestedScrollView with a boolean to state whether user wants to enable compatibility to work with SwipeRefreshLayout.
OverScrollDecoratorHelper.setUpOverScroll(scrollView, enableSwipeToRefresh: true);
By having enableSwipeToRefresh true, over scroll from top will be disabled as well.