Inconsistency detected in RecyclerView, How to change contents of RecyclerView while scrolling

前端 未结 26 2521
借酒劲吻你
借酒劲吻你 2020-12-01 00:59

I\'m using RecyclerView to display name of the items. My row contains single TextView. Item names are stored in List mItemList<

26条回答
  •  我在风中等你
    2020-12-01 01:54

    I dont see anthing wrong with the code you posted. The only thing weird to me is this line

    setSelected(fileHolder.itemView, mSelectedArray.get(i));
    

    in your onBindViewHolder method in the adapter.. are you updating this array too when you change the size of your list of items in the array?

提交回复
热议问题