UltimateRecyclerView icon indicating copy to clipboard operation
UltimateRecyclerView copied to clipboard

Use Sticky Header with notifyItemChanged. Flash issue

Open KingWu opened this issue 8 years ago • 3 comments

Hi, try to implement UltimateRecyclerView with Sticky Header. When click list item, i use notifyItemChanged with position to update the item's UI. But, the position of sticky header will be calculated wrong. You will see a Flash issue. The header show down side and then show upper sider.

KingWu avatar Jul 22 '15 09:07 KingWu

this is related to item notifications, we will review it later for the stability issue. at the same would u post your code here so we can help u? @KingWu

jjhesk avatar Feb 03 '16 06:02 jjhesk

Hi @KingWu , the same occur to me! I have do:

  1. myArray.clear()
  2. populate the array with new content.
  3. myAdapter.notifyDataSetChanged();

And as you say the position of sticky header is calculated wrong.

Studentessa avatar Oct 10 '16 09:10 Studentessa

You can disable animation to fix this flash issue: ((SimpleItemAnimator) recyclerView.getItemAnimator()).setSupportsChangeAnimations(false);

ppodgorski avatar Jul 24 '17 12:07 ppodgorski