RecyclerView blinking after notifyDatasetChanged()

前端 未结 18 1708
悲&欢浪女
悲&欢浪女 2020-12-07 16:20

I have a RecyclerView which loads some data from API, includes an image url and some data, and I use networkImageView to lazy load image.

@Override
public vo         


        
18条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 16:55

    Kotlin solution:

    (recyclerViewIdFromXML.itemAnimator as SimpleItemAnimator).supportsChangeAnimations = false
    

提交回复
热议问题