The behaviour of my listview on 2 devices is that either it turns yellow/orange when I overscroll it, or that it can be overscrolled and then snaps back. The latter behaviour is bad because it shows the background beneath it which I want to prevent.
I tried:
listview.setOverScrollMode(ListView.OVER_SCROLL_NEVER);
and it doesn't show the background anymore but now there is a very annoying bounce effect. Is it possible to both disable the bounce and the overscrolling and make it so the scrolling just ends without any effect when it reaches the end ?
PS: I am using android 2.3 on both devices.
You could create a mylistview class, extending listview, and you could override the overScrollBy method and set maxOverScrollY to zero
Here's how I solved this, hopefully it will help those searching. The key is to attach an OnScrollListener to the list, keep track of when a fling gesture is being processed, and when the end of the list has been reached. Then, while the fling is still going on, keep on resetting the position to the end if the system tries to move it.