Since Android 2.3.1 there is a new feature for ScrollViews and Lists called OverScroll. With
android:overScrollMode="never"
I can turn it off, but if i don't wan't to turn it off how can I change the Color of it?
Since Android 2.3.1 there is a new feature for ScrollViews and Lists called OverScroll. With
android:overScrollMode="never"
I can turn it off, but if i don't wan't to turn it off how can I change the Color of it?
Actually, instead of using a customized ListView, you can simply "hack" your way to changing the color, the glow effect is actually a Drawable embedded in the OS's resources, you can apply a ColorFilter on that:
Read more about it here: http://evendanan.net/android/branding/2013/12/09/branding-edge-effect/
Afaik there is no way to do this. So I created one; presenting:
Graeme's Amazing Custom List View v2
I've created a custom view which performs overscroll for ListViews and for GridViews (XML example is for slightly more involved GridView but view works for both):
The CustomGlowListView looks like this:
The overscroll images you can grab from platforms\android-10\data\res\drawable-mdpi\ and then change Hue & Saturation to change color.
I hope this can be a useful start for other ListView customisations - Be interesting to hear of any.
The following method overrides the standard overscroll color including the edge line.
Calling it once in onCreate is enough.