Git Product home page Git Product logo

guozhengxia / supereasyrefreshlayout Goto Github PK

View Code? Open in Web Editor NEW
53.0 53.0 17.0 578 KB

SuperEasyRefreshLayout是一个功能强大且易与使用的下拉刷新控件,参照Google提供的SwipeRefreshLayout的原理实现。SuperEasyRefreshLayout本质是一个容器,将可以滑动的View放入容器中即可实现下拉刷新和上拉加载更多的功能。支持的子view有:ListView,RecyclerView,GridView,ScrollView。

Java 100.00%

supereasyrefreshlayout's People

Contributors

guozhengxia 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  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

supereasyrefreshlayout's Issues

先赞一个控件,然后发现了个小BUG。关于下拉刷新的

如果scrollview 里的内容为空或者子view的个数不足以向下滑动的时候。
无法下拉刷新。
暂时个人的解决办法:
if (!canChildScrollDown()) {//若是底部不能滑动,则yDiff是负值,取反后与mTouchSlop做比较。 if (yDiff < 0) { yDiff = -yDiff; } }
这里。对yDiff做一个判负。就可以解决了。期待更新~~~
上面的方法不对。 sorry 。高兴的太早了。会导致向上滑的时候引起refresh动作
下面的方法才对。我测试过程中。没什么问题。
if(!canChildScrollDown()){//若是底部不能滑动,则yDiff是负值,取反后与mTouchSlop做比较。

                if (yDiff < 0 || canChildScrollUp()) {
                    yDiff = -yDiff;
                }
            }

这里加上一个判断。 这样就好了

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.