This project aims to provide a reusable Pull to Refresh widget for Android. It is originally (loosely) based on Johan Nilsson's Library (mainly for graphics, strings and animations), and has been vastly improved since then.
- Supports both Pulling Down from the top, and Pulling Up from the bottom
- Animated Scrolling for all devices (Tested on 1.6+)
- Works for all AbsListView derived classes. I've implemented both ListView and GridView.
- Works with ExpandableListView (thanks to Stefano Dacchille)
- Works with WebView!
- Integrated End of List Listener (
setOnLastItemVisibleListener()
) - Maven Support (thanks to Stefano Dacchille)
- No longer shows the Tap to Refresh view when the AdapterView can not fill itself.
- Indicators to show the user when a Pull-to-Refresh is available
- Lots of Customisation options!
Repository at https://github.com/chrisbanes/Android-PullToRefresh.
To being using the libary, please see the Quick Start Guide page.
Please see the Customisation page for more information on how to change the behaviour and look of the View.
By default this library is set to Pull Down to Refresh, but if you instead to Pull Up to Refresh you can do so via XML. You can even set the View to enable both Pulling Up and Pulling Down using the 'both' setting. See the Customisation page for more information on how to set this.
I will gladly accept pull requests for fixes and feature enhancements but please do them in the dev branch. The master branch is for the latest stable code, dev is where I try things out before releasing them as stable. Any pull requests that are against master from now on will be closed asking for you to do another pull against dev.
Please see the new Changelog page to see what's recently changed.
Licensed under the Apache License, Version 2.0