Remove RecyclerView scroll effects

JavierSegoviaCordoba picture JavierSegoviaCordoba · Dec 31, 2014 · Viewed 56.2k times · Source

I have two RecyclerView inside my NavigationDrawer. Both have the blue scroll effects.

How can I remove this effect in both RecyclerViews?

I tried changing: mRecyclerView.setHasFixedSize(true); to false, but it remove scroll effects. (What is the effect of this method?)

Link to an image of the problem

Answer

mmlooloo picture mmlooloo · Dec 31, 2014

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" />