how to disable recycler view scrolling so that it listens to Scrollview layout?

Abhilash picture Abhilash · Mar 10, 2015 · Viewed 30k times · Source

I have a recycler view inside a ScrollView. I want to disable the recycler view scroll so that it listens to its parent layout, A ScrollView!

Answer

mipreamble picture mipreamble · Aug 29, 2015

This should solve your RecyclerView nested scrolling.

 mRecyclerView.setNestedScrollingEnabled(false);

RecyvlerView implements NestedScrollingChild

for instance if RecyclerView parent is a ScrollView or ListView or RecyclerView or any AbsListView

disable scrolling for the child RecyclerView.