pull to refresh in android

RATTLESNAKE picture RATTLESNAKE · Jan 13, 2011 · Viewed 8.3k times · Source

Possible Duplicate:
How to implement Android Pull-to-Refresh

I have implemented pull to refresh in my app which works fine in 2.2, but in 2.0 it doesn't.

I couldn't find the method 'smoothScrollBy()' in 2.0.

Can anyone please give me the solution for this issue or any other alternative? How can I acheive pull to refresh functionality like in iphone?

Thanks..

Answer

lethargicpanda picture lethargicpanda · May 8, 2011

You could also take a look to Johan Nilsson's android-pulltorefresh library:

https://github.com/johannilsson/android-pulltorefresh

It provides an out-of-the-box "pull to refresh" widget that replace the basic Android ListView.