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

上拉加载显示问题 #1355

Closed
LambdaV5 opened this issue Jul 27, 2017 · 10 comments
Closed

上拉加载显示问题 #1355

LambdaV5 opened this issue Jul 27, 2017 · 10 comments

Comments

@LambdaV5
Copy link

LambdaV5 commented Jul 27, 2017

在上拉加载的过程中,如果继续往上拖动recyclerView(连续快速往上拉可重现),上拉加载完成后布局显示错乱
底部显示情况
default
recyclerview底部被这个view遮盖,顶部也会被遮盖
顶部显示情况
default

小车为下拉刷新布局

@CymChad
Copy link
Owner

CymChad commented Jul 27, 2017

收到

@1109993488
Copy link
Collaborator

1109993488 commented Jul 27, 2017

没看出什么问题,能否截个gif?

@LambdaV5
Copy link
Author

取货码:20这个item是最后一个item,正常显示应该是显示到下边蓝色这个地方,第二个图为第一个item,已经拉到顶了,但是它有一部分在rv界面外显示了

@1109993488
Copy link
Collaborator

是否是RecyclerView外面的下拉刷新控件影响的?

@LambdaV5
Copy link
Author

上拉加载用的是adapter的,我觉得可能是在快速上拉的过程中把前一次加载的view引用改变了,然后导致加载成功后之前的view没有被移除

@1109993488
Copy link
Collaborator

能把上拉加载更新代码贴下吗

@LambdaV5
Copy link
Author

if (orders.size() > 0) { mOrderAdapter.loadMoreComplete(); mOrderAdapter.addData(orders); } else { --mPageNum; mOrderAdapter.loadMoreEnd(); }

@1109993488
Copy link
Collaborator

看代码没问题,是否是你用的ItemDecoration造成的?

@LambdaV5
Copy link
Author

没有ItemDecoration

@LambdaV5
Copy link
Author

确实是下拉框架的问题

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

3 participants