删除RecyclerView滚动效果 [英] Remove RecyclerView scroll effects
本文介绍了删除RecyclerView滚动效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的NavigationDrawer
内部有两个RecyclerView
.两者都有蓝色滚动效果.
I have two RecyclerView
inside my NavigationDrawer
. Both have the blue scroll effects.
如何在两个RecyclerViews
中都删除该效果?
How can I remove this effect in both RecyclerViews
?
我尝试将mRecyclerView.setHasFixedSize(true);
更改为false
,但是它删除了滚动效果. (此方法有什么作用?)
I tried changing: mRecyclerView.setHasFixedSize(true);
to false
, but it remove scroll effects. (What is the effect of this method?)
推荐答案
将此添加到您的布局中:
Add this to your layout:
android:overScrollMode="never"
所以:
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="never"
android:background="#FFFFFF"
android:scrollbars="vertical" />
这篇关于删除RecyclerView滚动效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文