How to get iPhone-style super scroll in Android 2.3 (Gingerbread)?

In the Gingerbread release, overscrolling is indicated by an orange "flash." However, the release notes and some API docs seem to indicate that there is support for over-scrolling in iPhone style. For example, see here . However, it is not clear how to do this. Simply creating drawings using these methods does not change behavior. Does anyone know how to do this?

+7
source share
2 answers

I recently made a couple of blog posts about this. Take a look!

http://jasonfry.co.uk/?id=26

http://jasonfry.co.uk/?id=27

Since then, I had the thought that when you override the overScrollBy method, I assume that you can use half of one of these parameters to get an idea, not to follow your finger when you jump, but just follow half the distance.

+8
source

I can't answer this from experience, but there is a method called setOverScrollMode() in AbsListView that can be useful. In addition, I also found the OverScroller class. This is similar to what you are looking for; implementation details, I can’t even help.

+1
source

All Articles