MalikDE NestedRecyclerView Save

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

Project README

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.

Open Source Agenda is not affiliated with "MalikDE NestedRecyclerView" Project. README Source: MalikDE/NestedRecyclerView
Stars
30
Open Issues
0
Last Commit
4 years ago

Open Source Agenda Badge

Open Source Agenda Rating