Android-PullToRefresh 复活了,一个强大的Andriod 下拉刷新框架,支持RecyclerView ,ListView...

网友投稿 766 2022-11-03

Android-PullToRefresh 复活了,一个强大的Andriod 下拉刷新框架,支持RecyclerView ,ListView...

Android-PullToRefresh 复活了,一个强大的Andriod 下拉刷新框架,支持RecyclerView ,ListView...

Android-PullToRefresh

Android-PullToRefresh 复活了,一个强大的Andriod 下拉刷新框架,支持RecyclerView ,ListView...

前言

最近想开发一个共用的下拉刷新组件,便研究研究优秀的Android-PullToRefresh, 可惜这个优秀库不维护了/(ㄒoㄒ)/~~, 所以便将它转为AndroidStudio 工程,加入了RecyclerView的支持,方便大家学习~

Android-PullToRefresh库 github 地址

Android-PullToRefresh

PLEASE NOTE, THIS PROJECT IS NO LONGER BEING MAINTAINED

Pull To Refresh Views for Android

This project aims to provide a reusable Pull to Refresh widget for Android. It was originally based on Johan Nilsson's library (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: ListViewExpandableListViewGridViewWebViewScrollViewHorizontalScrollViewViewPager 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 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:

Usage

To begin using the library, please see the Quick Start Guide page.

Customisation

Please see the 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 page for more information on how to set this.

Apps

Want to see which Apps are already using Android-PullToRefresh? Have a look here. If you have an App which is not on the list, let me know.

Changelog

Please see the new 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 DacchilleSteve LhommeMaxim GalkinScorcher

License

Copyright 2011, 2012 Chris BanesLicensed 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://apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:编程语言的理解
下一篇:基本算法练习__约会问题
相关文章

 发表评论

暂时没有评论,来抢沙发吧~