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?

Mahdi M
  • 176
  • 1
  • 8

1 Answers1

1

I finally had to cache all views by this line:

recyclerView.setItemViewCacheSize(adapter.getItemCount())

but this may lead to bad performance.

Mahdi M
  • 176
  • 1
  • 8