有没有一种方法来禁用/编辑衰落,一个列表视图在其边缘?视图、方法来、边缘、编辑

2023-09-03 22:10:15 作者:成熟性猎杀

滚动视图,如在ListView有一个淡出沿着那里是在那个方向更多的内容边缘的内容。我怎样才能把这个衰落了吗?我知道你可以改变cacheColorHint这里讨论的: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(假);

http://developer.android.com/reference/android/view/View.html#setVerticalFadingEdgeEnabled(boolean)