header-decor icon indicating copy to clipboard operation
header-decor copied to clipboard

Issue when deleting 1st item under header

Open REWKyleB opened this issue 8 years ago • 4 comments

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

REWKyleB avatar Sep 28 '16 20:09 REWKyleB

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.

ebarrenechea avatar Oct 13 '16 11:10 ebarrenechea

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.

REWKyleB avatar Oct 13 '16 18:10 REWKyleB

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.

TostF avatar Mar 10 '17 08:03 TostF

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.

Nammy1101 avatar Mar 21 '17 22:03 Nammy1101