NestedRecyclerView icon indicating copy to clipboard operation
NestedRecyclerView copied to clipboard

Improve the scroll angle when 2 recyclers views are nested : a recycler view that contains other recycler views, just like the Play Store.

Improve scroll in nested Recycler Views

This piece of code aims to improve the scroll angle when 2 recyclers views are nested : a recycler view that contains other recycler views, just like the Play Store.

The objective is to change the scroll angle in the Parent Recycler View and override the onInterceptTouchEvent method. When this method return false, the parent recycler view will not get the touch event. Instead, the event will be dispatched to the underlying child view (another recycler view)

Classic

The classic implementation seems to be less than 45° to allow an horizontal scroll.

Improved

In the example bellow, angle is customized up to 70 degrees.