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

下拉分页后,有时候向下滑动,出现下拉刷新 #48

Open
fenggit opened this issue Jun 15, 2017 · 2 comments
Open

下拉分页后,有时候向下滑动,出现下拉刷新 #48

fenggit opened this issue Jun 15, 2017 · 2 comments

Comments

@fenggit
Copy link

fenggit commented Jun 15, 2017

下拉分页后,有时候向下滑动,出现下拉刷新;应该在顶部才出现下拉刷新才对

@lgj1020
Copy link

lgj1020 commented Jul 10, 2017

对,这里有问题,同求修改?!

@fenggit
Copy link
Author

fenggit commented Jul 10, 2017

@lgj1020
在PullLoadMoreRecyclerView#addOnScrollListener中添加
//解决下拉刷新冲突
int topRowVerticalPosition = (recyclerView == null || recyclerView.getChildCount() == 0) ? 0 : recyclerView.getChildAt(0).getTop();
mSwipeRefreshLayout.setEnabled(topRowVerticalPosition >= 0);

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