0

I have a recyclerview which contains two view types. for one view type I want to prevent recyclerview from updating that item as it is loaded before and is costly. I have used this and I think its not related to my question. is there a way to achieve this?

mrzbn
  • 497
  • 1
  • 3
  • 15

1 Answers1

1

I finally had to cache all views by this line:

recyclerView.setItemViewCacheSize(adapter.getItemCount())

but this may lead to bad performance.

mrzbn
  • 497
  • 1
  • 3
  • 15