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

PtrDefaultHandler中判断是否可以下拉的checkContentCanBePulledDown方法getScrollY()能获取到数据吗? #30

Closed
grumoon opened this issue Jan 9, 2015 · 2 comments

Comments

@grumoon
Copy link

grumoon commented Jan 9, 2015

在4.0以下的listview中存在这样的问题
bug

if (Build.VERSION.SDK_INT >= 14) {
            return !content.canScrollVertically(-1);
        } else {
            if (viewGroup instanceof ScrollView || viewGroup instanceof AbsListView) {
                return viewGroup.getScrollY() == 0;
            }
        }

viewGroup.getScrollY()这里应该是一直返回的是0

@liaohuqiu
Copy link
Owner

这段代码有问题的。ListViewgetScrollY() 方式获取始终是0

@liaohuqiu
Copy link
Owner

Fixed now.

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

2 participants