I have an Adapter for a RecyclerView
. The adapter has a property size, that can be either SMALL or LARGE.
Depending on the property, the layouts loaded for viewholders will be different.
I have a button to change this property, however after I set it, and if I call notifyDataSetChanged()
the views are not updated.
I have also tried requestLayout
and invalidate
without success. This is, onCreateViewHolder
is never called again.