PullLoadMoreRecyclerView icon indicating copy to clipboard operation
PullLoadMoreRecyclerView copied to clipboard

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

Open fenggit opened this issue 7 years ago • 2 comments

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

fenggit avatar Jun 15 '17 07:06 fenggit

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

lgj1020 avatar Jul 10 '17 09:07 lgj1020

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

fenggit avatar Jul 10 '17 10:07 fenggit