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

Fantom header appears

Open ghost opened this issue 9 years ago • 3 comments

In my RecyclerView I use 'notifyItemChanged(int position)' method to animate an image on an item when click on it. And when I click, above the item an excess header appears for a second and disappears. This doesn't happen if the list has only one header or with the last header if they are many. Step 1 (do nothing): snip_20170203184803

Step 2 (when I click on 'Attack 3'): snip_20170203184832

ghost avatar Feb 03 '17 16:02 ghost

I'm having the same problem. It happens when I call notifyItemChanged(int position) during the animation.

laricampos avatar Mar 29 '17 20:03 laricampos

same here

l1218yj2 avatar Apr 07 '17 04:04 l1218yj2

It has something to do with the default item animator and the fact that this lib doesn't take animations into account. I could not find the exact reason, but for me disabling the animations for notifyItemChanged worked.

In Kotlin this is: (recyclerView.itemAnimator as SimpleItemAnimator).supportsChangeAnimations = false

micHar avatar Apr 14 '17 14:04 micHar