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

前端 未结 26 2499
借酒劲吻你
借酒劲吻你 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:48

    I had same issue when I was setting new adapter instance on based on some selection criteria.

    I have fixed my issue by using RecyclerView.swapAdapter(adapter, true) When we set new adapter.

提交回复
热议问题