Reputation: 13947
I have a listview with overscroll mode on - (I need it on)
And there is a blue overscroll glow everytime I overscroll
how do I get rid of the overscroll glow ?
EDIT:
I am using a custom listview that streches the overscroll drawable (picture) - the way it should be however, along with the picture there is a glowing effect which i want to get rid of
see the blue thing above the image?
the image IS the overScrollDrawable - but i want the same thing - without the glow
Upvotes: 29
Views: 15867
Reputation: 23638
You just need to set your ListView
property fadeEdge
to none in your layout xml file and you will not get the shadow blue on OVERSCROLL.
android:fadingEdge="none"
EDIT:
this is now deprecated, you can use android:overScrollMode="never"
instead.
Upvotes: 4
Reputation: 11892
In the ListView
you can set the drawable when overscrolling on top or bottom. This is usually set to a white/transparent drawable that is animated with fadeIn and fadeOut. To set the glowing to something fully transparent you can write:
ListView listView = ...;
listView.setOverscrollFooter(new ColorDrawable(0));
listView.setOverscrollHeader(new ColorDrawable(0));
This keeps the overscroll itself active, so that you can react on overscrolling events, but the glowing should be gone.
Upvotes: -2