biaowu / android-pull-to-refresh Goto Github PK
View Code? Open in Web Editor NEWSupport Pull Down To Refresh And Pull Up to Refresh. 支持下拉+上拉刷新!
License: Apache License 2.0
Support Pull Down To Refresh And Pull Up to Refresh. 支持下拉+上拉刷新!
License: Apache License 2.0
onRefreshBegin方法应该把HeaderView或FooterView参数带上吧,这种自定义的应该是要控制View变化的
请问demo展示的gif是用什么做的
: 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 android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4363)
at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1961)
at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1370)
at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1333)
at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:562)
at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2864)
at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3071)
at android.view.View.layout(View.java:14836)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at com.biao.pulltorefresh.PtrLayout.layoutChild(PtrLayout.java:168)
at com.biao.pulltorefresh.PtrLayout.onLayout(PtrLayout.java:136) 角标越界
你好,直接下载你的源码,运行项目后,只要先下拉刷新,再上拉加载更多,最后在下来刷新就会崩溃。
我这边用的测试机是小米4 android6.0
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 .
now it seems to be fixed just as match_parent
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.