Skip to content Skip to sidebar Skip to footer

Is There A Way To Disable/edit The Fading That A List View Has At Its Edges?

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

Solution 1:

I can't actually test it right now, but I believe fadingEdge is what you're looking for:

android:fadingEdge="none"

or

listView.setVerticalFadingEdgeEnabled(false);

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

Solution 2:

In case someone finds this via Google:

As mentioned, android:fadingEdge is deprecated. Use this instead:

android:overScrollMode="never"

Solution 3:

Late answer, but at this point to maintain backwards compatibility with API 13 and below, use both android:requiresFadingEdge="none" and android:fadingEdge="none" together.

Solution 4:

If you targetSdkVersion >= 14 than there will be no fading edges.

android:requiresFadingEdge

can help you to get them back.

source

Post a Comment for "Is There A Way To Disable/edit The Fading That A List View Has At Its Edges?"