XRefreshView

Project Url: huxq17/XRefreshView
Introduction: 一个万能的 android 下拉上拉刷新的框架,完美支持 recyclerview
More: Author   ReportBugs   
Tags:
recyclerview-下拉刷新-上拉加载-

# XRefreshView

Usage


Gradle

dependencies {
   compile 'com.huxq17.xrefreshview:xrefreshview:3.6.9'
   //依赖下面的库
   implementation 'androidx.recyclerview:recyclerview:1.1.0'
}

最新的使用说明请移步我的博客

效果图

松开加载更多的 Recyclerview 带 Banner 的 Recyclerview LinearLayout 样式的 Recyclerview
GridLayout 样式的 Recyclerview Staggered 样式的 Recyclerview
GridView 自定义 View 笑脸刷新
自定义刷新 仿京东刷新 自定义刷新

还有 listview,scrollview,webview 等其他的 view 就不一一截图了。建议把此项目下载下来,然后跑到手机上看效果,例子都在 app module 里。

更新日志:

2020-6-13:
1.更新 android 平台到 androidx


2017-5-4:
1.解决已无更多数据显示不出来的问题,fix issue[#78](https://github.com/huxq17/XRefreshView/issues/78)
2.升级到 3.6.9 版本

2017-5-3:
1.解决 xrefreshview 不满屏的时候 footerview 正常状态下出现在屏幕上的问题,fix issue[#75](https://github.com/huxq17/XRefreshView/issues/75)
2.升级到 3.6.8 版本

2017-4-25:
1.通过使用 XWebView,解决在三星 c5、小米 5 等机型在 webview 上加 XRefreshView,会出现加载更多没有效果的现象,详见 issue[#72](https://github.com/huxq17/XRefreshView/issues/72)
2.升级到 3.6.7 版本

2017-4-14:
1.解决 Recyclerview 频繁上拉加载时会出现 footerview 位置异常的问题
2.给 setSilenceLoadMore 方法添加 boolean 参数,可以启用和禁用静默加载模式  
3.升级到 3.6.6 版本

2017-3-28:
1.不再强制 Recyclerview 使用 BaseRecyclerAdapter,当不使用 BaseRecyclerAdapter 时,RecyclerView 会被当成普通 view
上拉加载等操作和普通 view 相同,空布局等功能的使用方式也和普通 view 相同
2.解决 ListView 的子项目不足一屏时,上拉时再下拉会出现布局突然缩回的问题
3.升级到 3.6.5 版本

2017-3-27:
1.解决事先 setPullRefreshEnable(false),再 setPullRefreshEnable(true)和 startRefresh()时,headerview 无法显示的问题
2.升级到 3.6.3 版本

2017-2-17:
1.添加下拉刷新时的回调 onRefresh(boolean isPullDown),其中 isPullDown 用来判断此次下拉刷新是不是由下拉手势触发的,true 则代表是,
反之则是自动刷新或者是调用 XRefreshView#startRefresh()}触发的刷新
2.升级到 3.6.2 版本

2017-2-16:
1.解决 issue[#58](https://github.com/huxq17/XRefreshView/issues/58)

2017-1-13:
1.解决 Recyclerview 使用 StaggeredGridLayoutManager 时,添加的 headerview 不能使用全部宽度的问题(headview layout won't use all span area)

2017-1-6:
1.解决 issue[#49](https://github.com/huxq17/XRefreshView/issues/49)

2017-1-4:
1.解决 AbsListview 数据不满一屏的时候,会重复加载更多的问题

2016-12-15:
1.优化非 RecyclerView 上拉加载回弹的效果,同时支持 AbsListView(ListView、GridView)加载更多数据完成之后露出新加载的数据

2016-9-28:
1.添加 xscrollview 的滑动监听

2016-9-6:
1.解决 issue[#36](https://github.com/huxq17/XRefreshView/issues/36)

2016-8-19:
1.添加没有数据时显示空布局的支持
2.解决 6.0 以下的手机,在调用 startRefresh()方法后,刷新时 headerview 有时会不显示的问题
3.其他一些优化

2016-8-8:
1.添加下拉刷新,数据接收失败的 ui 处理
2.解决下拉刷新,在刷新状态下把 headerview 完全隐藏掉,在刷新结束以后下拉和上拉都不可用的问题

关于我

邮箱:huxq17@163.com   fanyafeng@live.cn
ps:有问题联系我的话请不要问我在不在,直接说问题,谢谢。

License

Copyright (C) 2015 huxq17

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.
Apps
About Me
GitHub: Trinea
Facebook: Dev Tools