I have multiple View
types in my RecyclerView
. I understand I need to write multiple RecyclerView.ViewHolder
s.
I'm trying to write these in a different package to make the whole project organization cleaner.
I know that while using the ViewHolder
pattern for a ListView, the ViewHolder
s should(must/can?) be made static inner classes.
Can the ViewHolder
s for RecyclerView
and ListView
be non-static and non-inner and still retain the performance benefit they were intended for?