【问题标题】:firebase recycler adapter is blink when data changes数据更改时firebase回收器适配器闪烁
【发布时间】:2017-10-11 02:20:46
【问题描述】:

使用 firebase 回收器适配器实现了一个通道。每次通道上的数据发生变化时,通道的单元格就会变得闪亮。有什么办法可以预防吗?

【问题讨论】:

    标签: android firebase firebase-realtime-database firebaseui


    【解决方案1】:

    试试这个。

    在您的初始化回收站视图中

    ((SimpleItemAnimator) myRecyclerView.getItemAnimator()).setSupportsChangeAnimations(false);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-05
      • 1970-01-01
      • 2018-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多