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

grumoon opened this issue Jan 9, 2015 · 2 comments


Copy link

@grumoon grumoon commented Jan 9, 2015


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


Copy link

@liaohuqiu liaohuqiu commented Jan 9, 2015

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

Copy link

@liaohuqiu liaohuqiu commented Apr 23, 2015

Fixed now.

@liaohuqiu liaohuqiu closed this Apr 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.