eowise / recyclerview-stickyheaders

DEPRECATED. Android library that integrate sticky section headers in your RecyclerView
http://eowise.github.io/recyclerview-stickyheaders
MIT License
961 stars 148 forks source link

Sticky headers using ItemDecoration doesn't display well on remove item #1

Closed leruaa closed 9 years ago

leruaa commented 9 years ago

Item removing is animated so items under removed item are smoothly translated up. But ItemDecoration onDrawOver() is only called once when remove animation is started. So headers under removed item cannot be animated.

A workaround could be using a LayoutManager wrapper. Still searching...

leruaa commented 9 years ago

I finally fixed that issue by forcing recyclerview redraw while item add or remove animation by calling invalidate().