Android-Pull-To-Refresh
Android-Pull-To-Refresh copied to clipboard
Support Pull Down To Refresh And Pull Up to Refresh. 支持下拉+上拉刷新!
#### MaterialProgressDrawable刷新时会有一次闪烁: - 原因:修改了原来的动画导致; - 解决方法:使用Google的MaterialProgressDrawable.java。 #### onMeasure()方法中自身宽高测量结果始终为match_parent: - 解决方法:测量出contentView的宽高后,加上contentView的margin参数,通过setMesuredDimension()方法设定容器自身宽高。
now it seems to be fixed just as match_parent
你好,直接下载你的源码,运行项目后,只要先下拉刷新,再上拉加载更多,最后在下来刷新就会崩溃。 我这边用的测试机是小米4 android6.0
: FATAL EXCEPTION: main Process: com.biao.pulltorefresh.sample, PID: 10988 java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{41b9f9a0 position=28 id=-1, oldPos=28, pLpos:-1 scrap [attachedScrap] tmpDetached no parent} at android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:4251) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4382) at...
in your demo, pull down to refresh first, and then pull up to load more, and 3rd step, pull down to refresh, then you ptrLayout crashed!! please fix it .