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

Issue when deleting 1st item under header #50

Open
REWKyleB opened this issue Sep 28, 2016 · 4 comments
Open

Issue when deleting 1st item under header #50

REWKyleB opened this issue Sep 28, 2016 · 4 comments
Labels

Comments

@REWKyleB
Copy link

When deleting the first item (Item 1 in the screenshot below) the item will jump above "Header 0" before being deleted. I am calling notifyItemRemoved() upon deleting an item.

device-2016-09-28-131314

@ebarrenechea
Copy link
Owner

Hi @REWKyleB, do you have an animation associated with deleting the item? Are you clearing the header cache on the decoration as well? It be a lot of help if you could provide a sample that shows this issue.

@starkej2 starkej2 added the bug label Oct 13, 2016
@REWKyleB
Copy link
Author

REWKyleB commented Oct 13, 2016

Hi @edubarr, Thank you for the reply. I don't have a code snippet handy, but I can give a few details on the implementation I previously had. I was using the RecyclerView DefaultItemAnimator and I was clearing the header cache on the decoration.

@TostF
Copy link

TostF commented Mar 10, 2017

I have the same problem. It only appears when using notifyItemRemoved(i) method in my recycler adapter. This glitch happends only on the item that is "holding" sticky header.

@Nammy1101
Copy link

Same issue, when using notifyItemRemoved for item directly underneath sticky header, causes header to momentarily move to bottom of item to be deleted before animation, then performs remove animation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants