Android-PullToRefreshRecyclerView
Android-PullToRefreshRecyclerView copied to clipboard
A RecyclerView library for Android which support pull-to-refresh ,auto-load-more and add header.
Process: com.haimai.baletu, PID: 27332 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.haimai.baletu/com.haimai.main.activity.MainActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.support.v7.widget.RecyclerView$SavedState instead. This usually happens when two views of different...
I got this error when scroll recyclerview. It drop frame so much. How to fix this ,guy? Thanks! `Cannot call this method in a scroll callback. Scroll callbacks might be...
java.lang.IllegalStateException: Cannot remove item decoration during a scroll or layout at android.support.v7.widget.RecyclerView.assertNotInLayoutOrScroll(RecyclerView.java:2771) at android.support.v7.widget.RecyclerView$LayoutManager.assertNotInLayoutOrScroll(RecyclerView.java:7523) at android.support.v7.widget.LinearLayoutManager.assertNotInLayoutOrScroll(LinearLayoutManager.java:1352) at android.support.v7.widget.RecyclerView.removeItemDecoration(RecyclerView.java:1566) at com.lhh.ptrrv.library.PullToRefreshRecyclerView.setHasMoreItems(PullToRefreshRecyclerView.java:334) at com.lhh.ptrrv.library.PullToRefreshRecyclerView.access$800(PullToRefreshRecyclerView.java:22) at com.lhh.ptrrv.library.PullToRefreshRecyclerView$InterOnScrollListener.onScrolled(PullToRefreshRecyclerView.java:389) at android.support.v7.widget.RecyclerView.dispatchOnScrolled(RecyclerView.java:4844) at android.support.v7.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:3909) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3540)...
空view的时候下拉刷新有问题
为什么自动就加载更多了,还没拖动呢,几十个就item就自动加载完了 设置的是10个item触发加载更多。但还没拖动屏幕啊。。。
请问有没有直接开启刷新动画的方法,不需要滑动才能刷新
上滑到底部,触发不了onLoadMoreItems事件
使用LayoutManager来判断是否滑动到最后一个item,兼容性非常好。解决赏花到底部,不自动触发加载更多的事件