Skip to content

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

Notifications You must be signed in to change notification settings

MalikDE/NestedRecyclerView

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages