How to remove SnapHelper from a RecyclerView

Staring from recyclerview-v7:25.1.0, is enough to call

snapHelper.attachToRecyclerView(null); 

to remove the SnapHelper

I faced the same problem. Calling

clearOnScrollListeners();
setOnFlingListener(null);

on the RecyclerView instance did the trick for me. Calling only setOnFlingListener(null); wasn't enough in my case


well,it's written on the SnapHelper official API:Public methods=>attachToRecyclerView:[The RecyclerView instance to which you want to add this helper or null if you want to remove SnapHelper from the current RecyclerView.] https://developer.android.com/reference/android/support/v7/widget/SnapHelper.html#attachToRecyclerView%28android.support.v7.widget.RecyclerView%29