ActionBar-PullToRefresh provides an easy way to add a modern version of the pull-to-refresh interaction to your application.
Please note that this is not an update to Android-PullToRefresh, this has been created from new. You should think of this as Android-PullToRefresh's younger, leaner cousin.
This is a Preview
Please note that this is currently in a preview state. This basically means that the API is not fixed and you should expect changes between releases.
There are two sample applications, the stock sample which uses the standard library and is therefore has a
minSdkVersion of 14. There is also a sample which uses the ActionBarSherlock extra so has a
minSdkVersion of 7.
ActionBar-PullToRefresh has in-built support for:
- AbsListView derivatives (ListView & GridView).
If the View you want to use is not listed above, you can easily add support in your own code by providing a
ViewDelegate. See the
ViewDelegate section below for more info.
Usage and Integration
See the Quick Start guides for more information on how to achieve a simple integration:
- Quick Start for API v14 and above.
- Quick Start: ActionBarCompat when using ActionBarCompat (appcompat).
- Quick Start: ActionBarSherlock when using ActionBarSherlock.
Then we are some advanced integration information:
- ListFragment when integrating the library with a ListFragment.
See the Customisation page for more information.
Copyright 2013 Chris Banes
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.