SmartRefreshLayout icon indicating copy to clipboard operation
SmartRefreshLayout copied to clipboard

🔥下拉刷新、上拉加载、二级刷新、淘宝二楼、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹、越界拖动,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。

Results 229 SmartRefreshLayout issues
Sort by recently updated
recently updated
newest added

请问如何控制二楼层下拉的高度,不用下拉到底部

需求需要实现类似于微信朋友圈的下拉刷新。释放时需要回弹到位置0,所以我的想法是自定义head,在onReleased中通过refreshKernel.animSpinner方法覆盖回弹最终位置。但是发现覆盖后会丢失刷新事件。 看源码发现原因是在调用onReleased中调用animSpinner方法覆盖了动画。导致丢失之前回弹动画添加的AnimatorListener。建议修改setStateRefreshing方法,在调用onReleased后,重新添加可能丢失的AnimatorListener。 或者如果以后更好的办法实现我需要的需求,欢迎建议!!!

初始自动刷新,在网络很延迟的情况下。数据还没有请求到,就停止了刷新动画。 ![image](https://user-images.githubusercontent.com/33193340/139097425-c9f8d319-353e-44f8-bd73-d9d13cb943dd.png)

自定义Footer implements RefreshFooter 接口大部分红的,接口必须得实现,源码又不希望改变?

刷新监听:refreshLayout.setOnRefreshListener { refresh() } - 页面中多处同时调用autoRefresh()后导致当前页面卡死,load success头部卡死显示一半 - 但是手动调用refreshLayout.autoRefreshAnimationOnly()+refresh()暂未出现页面卡死问题 复现场景:fragment上层DialogFragmentA+DialogFragmentB,触发条件跳转到A_Activity后,在A_Activity发送通知fragment刷新,关闭A_Activity,关闭DialogFragmentB,关闭DialogFragmentB,页面回到fragment,此时该fragment卡死

![image](https://user-images.githubusercontent.com/102349923/160075443-7062017a-4c7b-4972-b6f9-cc59405703d4.png)

…跳跃的体验。上拉加载更多时,重复类似操作亦会导致contentView的跳跃。 (可将mReboundDuration设长一些,重复以上操作复现)

` java.lang.ArrayIndexOutOfBoundsException: length=73; index=-6 at android.text.StaticLayout.getLineTop(StaticLayout.java:1213) at android.widget.TextView.getExtendedPaddingTop(TextView.java:2691) at android.widget.TextView.onDraw(TextView.java:7957) at android.view.View.draw(View.java:21612) at android.view.View.updateDisplayListIfDirty(View.java:20481) at android.view.View.draw(View.java:21341) at android.view.ViewGroup.drawChild(ViewGroup.java:4417) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4177) at android.view.View.updateDisplayListIfDirty(View.java:20472) at android.view.View.draw(View.java:21341) at android.view.ViewGroup.drawChild(ViewGroup.java:4417) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4177) at android.view.View.draw(View.java:21615)...

例如: ```groovy implementation 'io.github.scwang90:refresh-layout-kernel:2.0.3' ``` 改为 ```groovy implementation 'com.scwang.smart:refresh-layout-kernel:2.0.3' ``` ???