ebarrenechea / header-decor

A couple of sticky header decorations for android's recycler view.
Apache License 2.0
879 stars 159 forks source link

Sometimes Header will glitch a little bit in the RecyclerListView #69

Closed hydrated closed 7 years ago

hydrated commented 7 years ago

It only happened in the first time using the listview. Scroll up and down with different header. The top stickyheader works fine. But there would be another header glitch a frame in the middle of listview that suppose not to show a header there. And then keep using listview there would be no glitch at all if the whole listview item was surfed.

It happens with notifyItemRangeChanged too

hydrated commented 7 years ago
    RecyclerView.ItemAnimator animator = recyclerView.getItemAnimator();
    if (animator instanceof SimpleItemAnimator) {
        ((SimpleItemAnimator) animator).setSupportsChangeAnimations(false);
    }

Cancel animator from recyclerview will fix this issue.