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

The size of the divider is wrong after notifyItemRemoved() #204

Open
Back4fire opened this issue Jun 16, 2021 · 2 comments
Open

The size of the divider is wrong after notifyItemRemoved() #204

Back4fire opened this issue Jun 16, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Back4fire
Copy link

The size of the horizontal divider will get bigger and bigger when removing items in a RecyclerView with a GridLayoutManager repeatedly.

RecyclerViewDivider version: 3.5.0

A Test Project:
MyApplication.zip

@Back4fire Back4fire added the bug Something isn't working label Jun 16, 2021
@fondesa
Copy link
Owner

fondesa commented Jul 26, 2021

Thanks for the sample. I'll investigate this.

@fondesa
Copy link
Owner

fondesa commented Dec 18, 2021

I've not found a solution yet for this issue.

The issue is related to the item animator attached by default to a RecyclerView:

recyclerView.itemAnimator = null

The workaround to this is removing the item animator but I'm searching a way to fix the remove animation in a GridLayoutManager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants