Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

canPullDown这个实现的方法有问题 #19

Open
bailibaili opened this issue May 3, 2016 · 0 comments
Open

canPullDown这个实现的方法有问题 #19

bailibaili opened this issue May 3, 2016 · 0 comments

Comments

@bailibaili
Copy link

bailibaili commented May 3, 2016

@Override
public boolean canPullDown()
{
    if (getCount() == 0)
    {
        // 没有item的时候也可以下拉刷新
        return true;
    } else if (“--————-getFirstVisiblePosition() == 0
            && getChildAt(0).getTop() >= 0---——————”)
    {
        // 滑到ListView的顶部了
        return true;
    } else
        return false;
}

else if中,横线之间的部分没有做非空处理,有空指针异常!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant