Dahnark Dahnark - 5 months ago 56
Android Question

Remove RecyclerView scroll effects

I have two RecyclerView inside of my Navigation Drawer. Both have the blue scroll effects.

How can I remove this effect in both RecyclerViews?

I tried changing this: mRecyclerView.setHasFixedSize(true); to false, but change nothing (what is the effect of this method?)

Link to an image of the problem

PD: sorry for my english.

Answer

Add this to your layout:

android:overScrollMode="never"

So:

<android.support.v7.widget.RecyclerView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:overScrollMode="never"
    android:background="#FFFFFF"
    android:scrollbars="vertical" />