【发布时间】:2021-04-17 12:46:24
【问题描述】:
我有read,将hasStableIds 设置为true,并在notifyDatasetChanged 调用时覆盖getItemId 将提高recyclerView 的性能。但是对于它的兄弟方法(notifyItemInserted 等),他们没有提到任何关于 stableIds 的地方。那么它是否也提高了其他方法的性能?如果我从来没有调用过notifyDatasetChanged,而只是通过其他更具体的调用来通知,我是否应该费心覆盖getItemId?
【问题讨论】:
标签: android android-recyclerview