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

Projects
None yet
2 participants
@grumoon

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

This comment has been minimized.

Show comment
Hide comment
@liaohuqiu

liaohuqiu Jan 9, 2015

Owner

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

Owner

liaohuqiu commented Jan 9, 2015

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

@liaohuqiu

This comment has been minimized.

Show comment
Hide comment
@liaohuqiu

liaohuqiu Apr 23, 2015

Owner

Fixed now.

Owner

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