Giter VIP home page Giter VIP logo

pulltorefreshlistview's Introduction

pulltorefreshlistview's People

Contributors

fruitranger avatar

Stargazers

Victor Hugo avatar Xuehao (David)  Hu avatar trz avatar Shawn Racine avatar  avatar Match avatar 冷小菜 avatar Phil Barr avatar  avatar  avatar Textras avatar Andy.li avatar yale avatar EvanZhang avatar Ergo avatar XingKai avatar Brody avatar zonda avatar G avatar 脉脉不得语 avatar  avatar  avatar  avatar  avatar  avatar indooorsman avatar xiaoliang avatar Glenn Nagel avatar Jasper So avatar  avatar jongyunlee avatar  avatar Mugunthan avatar Alessandro Aprile avatar trietbui85 avatar Artem Ivanchenko avatar  avatar Thomas Jinwoo Min avatar  avatar Max Sang avatar  avatar Suleyman Celik avatar 李小义 avatar Kauserali avatar Chris avatar

Watchers

trietbui85 avatar James Cloos avatar inmyfree avatar  avatar  avatar  avatar jongyunlee avatar Alessandro Aprile avatar  avatar Pengfei Dai avatar  avatar

pulltorefreshlistview's Issues

Issue when pulling down, header view doesn't change.

I've experienced this problem many times, when the user goes to pull the list view down quickly, it never changes the text from "Pull down to refresh..."

The fix is this, in the setHeaderHeight(int height), change this:

if (mUpdatingStatus != UPDATING_IDLE) {
            if (mUpdatingStatus == UPDATING_READY
                    && mOnHeaderViewChangedListener != null) {
                mOnHeaderViewChangedListener.onViewUpdating(this);
                mUpdatingStatus = UPDATING_ON_GOING;

            }
        } else {
            if ((height < updateHeight) && mCanUpdate) {
                if (mOnHeaderViewChangedListener != null) {
                    mOnHeaderViewChangedListener.onViewChanged(this, false);
                }
                mCanUpdate = false;
            } else if ((height >= updateHeight) && !mCanUpdate) {
                if (mOnHeaderViewChangedListener != null) {
                    mOnHeaderViewChangedListener.onViewChanged(this, true);
                }
                mCanUpdate = true;
            }
        }

to this:

if (mUpdatingStatus != UPDATING_IDLE) {
            if (mUpdatingStatus == UPDATING_READY
                    && mOnHeaderViewChangedListener != null) {
                mOnHeaderViewChangedListener.onViewUpdating(this);
                mUpdatingStatus = UPDATING_ON_GOING;

            }
            if(height>=updateHeight) {
                mUpdatingStatus=UPDATING_IDLE;
            }

        } else {
            if ((height < updateHeight) && mCanUpdate) {
                if (mOnHeaderViewChangedListener != null) {
                    mOnHeaderViewChangedListener.onViewChanged(this, false);
                }
                mCanUpdate = false;
            } else if ((height >= updateHeight) && !mCanUpdate) {
                if (mOnHeaderViewChangedListener != null) {
                    mOnHeaderViewChangedListener.onViewChanged(this, true);
                }
                mCanUpdate = true;
            }
        }

I don't see the option to do a pull request.

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.