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

Delete item error #22

Closed
wkq87 opened this issue May 23, 2017 · 1 comment
Closed

Delete item error #22

wkq87 opened this issue May 23, 2017 · 1 comment

Comments

@wkq87
Copy link

wkq87 commented May 23, 2017

When i want to delete recyclerview item,it cannot work correct.
i delete the last item,an call notifyDataSetChanged method,and the recyclerview show incorrectly;all items scroll to the right of the center.
but when i delete other position items,it work well.

@yarolegovich
Copy link
Owner

Please call notifyItemRemoved, my implementation of notifyDataSetChanged doesn't know how to shift currentPosition, so it resets it.

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