上滚动的ListView顶部亮点 [英] ListView top highlight on scrolling
问题描述
边框显示默认颜色(这是橙色在我的Nexus S),而滚动一个ListView到了极限。如何更改颜色?
The border displays a default color (that's orange on my Nexus S) while scrolling a ListView to the limit. How to change that color?
我真的不知道该如何解释。单看这样的画面:
I really don't know how to explain it. Just look at this picture:
那么,如何改变高亮颜色时的ListView滚动到边境?通过主题或样式
So, how to change the highlight color when the ListView scrolling to the border? using themes or styles
推荐答案
该解决方案是使用 setOverscrollFooter(空)
和 setOverscrollHeader(空)
。
该文档<一个href="http://developer.android.com/reference/android/widget/ListView.html#setOverscrollFooter%28android.graphics.drawable.Drawable%29">here !
The solution is to use setOverscrollFooter(null)
and setOverscrollHeader(null)
.
The documentation is here !
您也可以直接在XML设置:
You can also set it directly in the XML :
<ListView android:overScrollMode="never" />
或指定的页脚和头:
Or specify the footer and the header :
<ListView
android:overscrollHeader="@null"
android:overscrollFooter="@null" />
N.B。 :还有一个属性 fadingEdge
您可能会感兴趣
Overscrollmethodes支持启动API级别9
"Overscroll" methodes are supported starting API level 9
这篇关于上滚动的ListView顶部亮点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!