# PLEASE NOTE, THIS PROJECT IS NO LONGER BEING MAINTAINED
* * *
# Pull To Refresh Views for Android
![Screenshot](https://github.com/chrisbanes/Android-PullToRefresh/raw/master/header_graphic.png)
This project aims to provide a reusable Pull to Refresh widget for Android. It was originally based on Johan Nilsson's [library](https://github.com/johannilsson/android-pulltorefresh) (mainly for graphics, strings and animations), but these have been replaced since.
## Features
* Supports both Pulling Down from the top, and Pulling Up from the bottom (or even both).
* Animated Scrolling for all devices.
* Over Scroll supports for devices on Android v2.3+.
* Currently works with:
* **ListView**
* **ExpandableListView**
* **GridView**
* **WebView**
* **ScrollView**
* **HorizontalScrollView**
* **ViewPager**
* Integrated End of List Listener for use of detecting when the user has scrolled to the bottom.
* Maven Support.
* Indicators to show the user when a Pull-to-Refresh is available.
* Support for **ListFragment**!
* Lots of [Customisation](https://github.com/chrisbanes/Android-PullToRefresh/wiki/Customisation) options!
Repository at <https://github.com/chrisbanes/Android-PullToRefresh>.
## Sample Application
The sample application (the source is in the repository) has been published onto Google Play for easy access:
[![Get it on Google Play](http://www.android.com/images/brand/get_it_on_play_logo_small.png)](http://play.google.com/store/apps/details?id=com.handmark.pulltorefresh.samples)
## Usage
To begin using the library, please see the [Quick Start Guide](https://github.com/chrisbanes/Android-PullToRefresh/wiki/Quick-Start-Guide) page.
### Customisation
Please see the [Customisation](https://github.com/chrisbanes/Android-PullToRefresh/wiki/Customisation) page for more information on how to change the behaviour and look of the View.
### Pull Up to Refresh
By default this library is set to Pull Down to Refresh, but if you want to allow Pulling Up to Refresh then you can do so. You can even set the View to enable both Pulling Up and Pulling Down using the 'both' setting. See the [Customisation](https://github.com/chrisbanes/Android-PullToRefresh/wiki/Customisation) page for more information on how to set this.
## Apps
Want to see which Apps are already using Android-PullToRefresh? Have a look [here](https://github.com/chrisbanes/Android-PullToRefresh/wiki/Apps). If you have an App which is not on the list, [let me know](http://www.senab.co.uk/contact/).
## Changelog
Please see the new [Changelog](https://github.com/chrisbanes/Android-PullToRefresh/wiki/Changelog) page to see what's recently changed.
## Pull Requests
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.
## Acknowledgments
* [Stefano Dacchille](https://github.com/stefanodacchille)
* [Steve Lhomme](https://github.com/robUx4)
* [Maxim Galkin](https://github.com/mgalkin)
* [Scorcher](https://github.com/Scorcher)
## License
Copyright 2011, 2012 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
http://www.apache.org/licenses/LICENSE-2.0
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.
没有合适的资源?快使用搜索试试~ 我知道了~
Android-PullToRefresh-master
共128个文件
xml:56个
java:36个
png:16个
4星 · 超过85%的资源 需积分: 0 51 下载量 103 浏览量
2013-06-08
14:24:18
上传
评论
收藏 1.28MB ZIP 举报
温馨提示
android上拉下拉刷新 PullToRefresh Android-PullToRefresh-master 注释掉PullToRefreshViewPager 里面的viewPager.setId(R.id.viewpager); 就可以了
资源推荐
资源详情
资源评论
收起资源包目录
Android-PullToRefresh-master (128个子文件)
.gitignore 217B
ptr_webview2_sample.html 3KB
android-support-v4.jar 341KB
android-support-v4.jar 341KB
android-support-v4.jar 341KB
PullToRefreshBase.java 45KB
PullToRefreshAdapterViewBase.java 14KB
LoadingLayout.java 12KB
PullToRefreshListView.java 10KB
IPullToRefresh.java 8KB
OverscrollHelper.java 8KB
PullToRefreshListActivity.java 7KB
PullToRefreshWebView.java 5KB
IndicatorLayout.java 5KB
PullToRefreshGridActivity.java 5KB
FlipLoadingLayout.java 5KB
PullToRefreshExpandableListActivity.java 4KB
PullToRefreshWebView2.java 4KB
PullToRefreshListFragmentActivity.java 4KB
PullToRefreshHorizontalScrollView.java 3KB
RotateLoadingLayout.java 3KB
PullToRefreshExpandableListView.java 3KB
PullToRefreshScrollView.java 3KB
PullToRefreshViewPagerActivity.java 3KB
PullToRefreshListInViewPagerActivity.java 3KB
PullToRefreshGridView.java 3KB
SoundPullEventListener.java 3KB
PullToRefreshBaseListFragment.java 3KB
LauncherActivity.java 3KB
PullToRefreshWebView2Activity.java 2KB
PullToRefreshHorizontalScrollViewActivity.java 2KB
PullToRefreshScrollViewActivity.java 2KB
PullToRefreshViewPager.java 2KB
ViewCompat.java 2KB
PullToRefreshExpandableListFragment.java 2KB
PullToRefreshListFragment.java 2KB
PullToRefreshWebViewActivity.java 2KB
LoadingLayoutProxy.java 2KB
ILoadingLayout.java 2KB
EmptyViewMethodAccessor.java 1KB
Utils.java 345B
wallpaper.jpg 92KB
LICENSE 11KB
LICENSE 11KB
LICENSE 11KB
LICENSE 11KB
README.md 4KB
reset_sound.mp3 7KB
refreshing_sound.mp3 7KB
pull_event.mp3 7KB
header_graphic.png 61KB
default_ptr_rotate.png 49KB
default_ptr_rotate.png 49KB
default_ptr_rotate.png 48KB
icon.png 4KB
android.png 3KB
default_ptr_flip.png 2KB
default_ptr_flip.png 2KB
default_ptr_flip.png 2KB
icon.png 1KB
icon.png 1KB
icon.png 902B
android.png 656B
indicator_arrow.png 445B
indicator_arrow.png 429B
indicator_arrow.png 390B
ant.properties 698B
project.properties 626B
project.properties 626B
project.properties 525B
project.properties 382B
proguard-project.txt 781B
pom.xml 4KB
attrs.xml 4KB
strings.xml 3KB
activity_ptr_horizontalscrollview.xml 2KB
AndroidManifest.xml 2KB
pull_to_refresh_header_vertical.xml 2KB
pom.xml 2KB
pom.xml 1KB
pom.xml 1KB
pull_to_refresh_header_horizontal.xml 1KB
pom.xml 1KB
activity_ptr_scrollview.xml 966B
activity_ptr_grid.xml 869B
slide_out_to_top.xml 866B
slide_in_from_top.xml 866B
slide_in_from_bottom.xml 865B
slide_out_to_bottom.xml 865B
activity_ptr_list.xml 840B
activity_ptr_expandable_list.xml 773B
pull_refresh_strings.xml 750B
pull_refresh_strings.xml 729B
pom.xml 715B
activity_ptr_viewpager.xml 698B
activity_ptr_webview2.xml 614B
activity_ptr_webview.xml 605B
indicator_bg_top.xml 595B
indicator_bg_bottom.xml 595B
activity_ptr_list_in_vp.xml 485B
共 128 条
- 1
- 2
www3224462
- 粉丝: 1
- 资源: 25
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页