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 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

@liaohuqiu liaohuqiu commented Jan 9, 2015

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

@liaohuqiu
Copy link
Owner

@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
Projects
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.