Git Product home page Git Product logo

android-pull-to-refresh's People

Contributors

biaowu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-pull-to-refresh's Issues

PtrHandler接口回调参数

onRefreshBegin方法应该把HeaderView或FooterView参数带上吧,这种自定义的应该是要控制View变化的

两个Bug

MaterialProgressDrawable刷新时会有一次闪烁:

  • 原因:修改了原来的动画导致;
  • 解决方法:使用Google的MaterialProgressDrawable.java。

onMeasure()方法中自身宽高测量结果始终为match_parent:

  • 解决方法:测量出contentView的宽高后,加上contentView的margin参数,通过setMesuredDimension()方法设定容器自身宽高。

崩溃了

: 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

a terrible crash bug!

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 .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.