# 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 (Tested on 1.6+)
* Works for all AbsListView derived classes. ListView, ExpandableListView & GridView have been implemented.
* Also Works with WebView!
* Integrated End of List Listener for use of detecting when the user has scrolled to the bottom.
* Maven Support (thanks to Stefano Dacchille)
* Indicators to show the user when a Pull-to-Refresh is available
* 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)
## 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.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
chrisbanes-Android-PullToRefresh-v1.3.3-3-gcbd7ab8.zip (67个子文件)
chrisbanes-Android-PullToRefresh-cbd7ab8
.gitignore 217B
README.md 4KB
pom.xml 4KB
library
pom.xml 1KB
AndroidManifest.xml 307B
src
com
handmark
pulltorefresh
library
PullToRefreshScrollView.java 920B
PullToRefreshAdapterViewBase.java 13KB
PullToRefreshWebView.java 3KB
PullToRefreshListView.java 8KB
internal
LoadingLayout.java 7KB
IndicatorLayout.java 4KB
EmptyViewMethodAccessor.java 1KB
PullToRefreshBase.java 32KB
PullToRefreshExpandableListView.java 2KB
PullToRefreshGridView.java 2KB
project.properties 382B
res
values
attrs.xml 794B
pull_refresh_strings.xml 741B
dimens.xml 235B
ids.xml 183B
layout
pull_to_refresh_header.xml 1KB
values-fr
pull_refresh_strings.xml 320B
values-ja
pull_refresh_strings.xml 322B
drawable-hdpi
default_ptr_drawable.png 521B
values-es
pull_refresh_strings.xml 313B
values-ru
pull_refresh_strings.xml 368B
values-pt-rBR
pull_refresh_strings.xml 312B
drawable
indicator_bg_bottom.xml 410B
indicator_bg_top.xml 410B
anim
slide_out_to_bottom.xml 865B
slide_in_from_top.xml 866B
slide_in_from_bottom.xml 865B
slide_out_to_top.xml 866B
values-de
pull_refresh_strings.xml 318B
drawable-xhdpi
arrow_down.png 477B
default_ptr_drawable.png 598B
arrow_up.png 486B
values-zh
pull_refresh_strings.xml 295B
values-ko
pull_refresh_strings.xml 318B
values-nl
pull_refresh_strings.xml 314B
values-pl
pull_refresh_strings.xml 329B
values-cs
pull_refresh_strings.xml 322B
values-pt
pull_refresh_strings.xml 317B
values-it
pull_refresh_strings.xml 314B
header_graphic.png 61KB
LICENSE.txt 11KB
sample
pom.xml 1KB
AndroidManifest.xml 2KB
src
com
handmark
pulltorefresh
samples
PullToRefreshListActivity.java 6KB
PullToRefreshScrollViewActivity.java 2KB
LauncherActivity.java 2KB
PullToRefreshWebViewActivity.java 2KB
PullToRefreshExpandableListActivity.java 4KB
PullToRefreshGridActivity.java 5KB
project.properties 400B
res
values
strings.xml 3KB
layout
pull_to_refresh_grid.xml 869B
pull_to_refresh_expandable_list.xml 833B
pull_to_refresh_webview.xml 605B
pull_to_refresh_scrollview.xml 938B
pull_to_refresh_list.xml 536B
drawable-ldpi
icon.png 902B
drawable-hdpi
icon.png 1KB
android.png 3KB
drawable
icon.png 4KB
drawable-mdpi
icon.png 1KB
drawable-xhdpi
android.png 656B
共 67 条
- 1
资源评论
- jasonnd2013-06-18一般般吧。参考无用。
whirlwind337
- 粉丝: 1
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功