有没有一种方法来禁用/编辑衰落,一个列表视图在其边缘? [英] Is there a way to disable/edit the fading that a list view has at its edges?
问题描述
滚动视图,如在ListView有一个淡出沿着那里是在那个方向更多的内容边缘的内容。我怎样才能把这个衰落了吗?我知道你可以改变cacheColorHint这里讨论的:<一href="http://developer.android.com/resources/articles/listview-backgrounds.html">http://developer.android.com/resources/articles/listview-backgrounds.html但是这不是我所期待的,也不会达到我所期待的在这种情况下。
Scrollable views such as the ListView have a fade out of the content along the edges where there is more content in that direction. How can I turn this fading off? I know you can change the cacheColorHint as discussed here: http://developer.android.com/resources/articles/listview-backgrounds.html but that is not what I am looking for and will not achieve what I am looking for in this case.
欲完全禁用褪色或能够减小尺寸和或它的透明度。这可能吗?
I want to disable the fade completely or be able to reduce the size and or transparency of it. Is this possible?
推荐答案
我实际上并不能马上进行测试,但我相信fadingEdge是你在找什么:
I can't actually test it right now, but I believe fadingEdge is what you're looking for:
安卓fadingEdge =无
或
listView.setVerticalFadingEdgeEnabled(假);
<一个href="http://developer.android.com/reference/android/view/View.html#setVerticalFadingEdgeEnabled(boolean)" rel="nofollow">http://developer.android.com/reference/android/view/View.html#setVerticalFadingEdgeEnabled(boolean)
这篇关于有没有一种方法来禁用/编辑衰落,一个列表视图在其边缘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!