1.adapter的setHasStableIds设置成true

2.重写adapter的getItemId方法

    @Override
    public long getItemId(int position) {
        return position;
    }
3.mRecyclerView.setItemAnimator(null);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-11-04
猜你喜欢
  • 2022-12-23
  • 2021-05-02
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案