SmartRefreshLayout
SmartRefreshLayout copied to clipboard
🔥下拉刷新、上拉加载、二级刷新、淘宝二楼、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹、越界拖动,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。
1、设置二楼不能上滑关闭的属性时:xml或者代码设置,然后打开二楼,第一次上滑会出现主体内容(主页面的视图),第二次上滑就正常了,但是重新打开二楼又会出现相同的问题,既然设置了不能上滑关闭,第一次上滑就不应该显示主体试图。 2、设置二楼能上滑关闭的属性时:上滑过快时,主体页面会停在二楼,这时不管你怎么上滑都不能关闭二楼了。 用的框架库都是最新的: implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1' //核心必须依赖 implementation 'com.scwang.smart:refresh-header-classics:2.0.1' //经典刷新头 implementation 'com.scwang.smart:refresh-header-two-level:2.0.1' //二级刷新头 implementation 'com.scwang.smart:refresh-footer-classics:2.0.1' //经典加载
这样不大好吧,有没办法固定住,刷新中的header就固定显示,不能推回去,
https://github.com/TommyLemon/APIJSON 已迁移到 https://github.com/Tencent/APIJSON
我的recycview用的vlayout布局,所以里面有很多内容,当我拉到最底部的时候,然后首页会慢慢往上滑一部分,遮盖住了最底层的内容,这是为什么呢
 当使用`autoRefresh()` 后, 先调用`finishRefresh()` , 后调用 `adapter.notifyDataSetChanged()` 会出现这种情况 如果先调用`adapter.notifyDataSetChanged()` 后调用`finishRefresh()` 就没有问题 配置: androidx ```gradle implementation 'com.scwang.smart:refresh-layout-kernel:2.0.3' implementation 'com.scwang.smart:refresh-header-classics:2.0.3' implementation 'com.scwang.smart:refresh-footer-classics:2.0.3' ``` ```xml ```

错误信息如下: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.view.NestedScrollingParent" on path: 在gradle.properties中已经添加对应设置 并且引入依赖appcompat:1.1.0 但运行后进入页面崩溃  
使用版本,2.0.3 最新版 复现方式: mRefreshLayout.autoRefresh(300, 3000, 1f, true); 调大 * @param duration 拖拽动画执行时间 在动画执行中,用手触摸任意地方,此时触发ACTION_DOWN, 然后手指轻轻移动一小段距离 表现:header 会瞬间回去,再回到当前动画的位置,看起来在闪动
getRefreshHeader==null ,重新设置也无效
SmartRefreshLayout 和 ViewPager2 使用回在 刷新头/尾的时候 action_up 事件 导致Viewpager2 滑动 。