移除 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?)
推荐答案
将此添加到您的布局:
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屋!
查看全文