SmartRefreshLayout
SmartRefreshLayout copied to clipboard
🔥下拉刷新、上拉加载、二级刷新、淘宝二楼、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹、越界拖动,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。
2.0.3 版本,使用了 com.scwang.smart.refresh.header.MaterialHeader com.scwang.smart.refresh.footer.BallPulseFooter ` ` 10-27 17:03:24.920 19822 19822 E AndroidRuntime: java.lang.NullPointerException: Attempt to read from field 'com.scwang.smart.refresh.layout.SmartRefreshLayout com.example.databinding.FragmentDiaryListBinding.c' on a null object reference 10-27 17:03:24.920 19822 19822 E...
触发刷新会快速闪现一下,并没有没有和下拉刷新一样时长的刷新效果,设置的话也无效,有解决的大佬没~
``` Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'com.scwang.smart.refresh.layout.a.e com.scwang.smart.refresh.layout.a.e.a(com.scwang.smart.refresh.layout.constant.RefreshState)' on a null object reference at com.scwang.smart.refresh.header.TwoLevelHeader.onMoving(TwoLevelHeader.java:211) at com.scwang.smart.refresh.layout.SmartRefreshLayout$RefreshKernelImpl.moveSpinner(SmartRefreshLayout.java:3828) at com.scwang.smart.refresh.layout.SmartRefreshLayout$8$1.onAnimationUpdate(SmartRefreshLayout.java:3347) at android.animation.ValueAnimator.animateValue(ValueAnimator.java:1558) at android.animation.ValueAnimator.animateBasedOnTime(ValueAnimator.java:1349) at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1481) at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:146)...
设置setEnableAutoLoadMore=true,下拉不会自动加载,需要手动拉一次,没办法实现类似微信的聊天效果
@scwang90 #504198 java.lang.IllegalStateException ViewHolder views must not be attached when created. Ensure that you are not passing 'true' to the attachToRoot parameter of LayoutInflater.inflate(..., boolean attachToRoot) com.scwang.smartrefresh.layout.b.a.a(RefreshContentWrapper.java:182) 时间是 09-04 ”109-04“:1...
快速刷新多次,只会走一次刷新回调,下拉刷新 loading 图标会一直存在
调用顺序是先Adapter.addData(),然后再调用finishLoadMore(),但是在全屏item的时候,footer无法回弹下去
加载更多的时候,滑动显示出了加载更多的布局,如果网络较慢,没有一下子加载出来数据,此时接着再滑动加载更多的数据就会直接触发父布局(viewpager)de 横向滑动的事件,重新SmartRefreshLayout的requestDisallowInterceptTouchEvent方法,请求父布局不要拦截事件,但是此方法已被源码屏蔽,无效,请问改如何解决?