Remove RecyclerView scroll effects

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?)

Answers


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

And in Java you would do

recyclerView.setOverScrollMode(View.OVER_SCROLL_NEVER)

or in Kotlin

recyclerView.overScrollMode = View.OVER_SCROLL_NEVER

Need Your Help

Git autocomplete in bash aliases?

git bash

I'm using go as a simple bash alias for git checkout branchname. The thing that I miss is the autocomplete feature that works with the full git checkout branchna... command, but not in the alias.

jQuery get img source attributes from list and push into array

jquery arrays loops attributes push

I have this thumbnail list and would like push the image paths (sources) into an array: tn_array