You just implement GenericAdapterViewModel and override buildView and bindViewHolder, sealed classes lend themselves nicely to this kinda of thing. Pair it with Anko and awayy you go
o
Olivier Patry
01/16/2019, 8:55 PM
Relying on hash code isn't safe for view type IMO.
g
ghosalmartin
01/17/2019, 11:19 AM
It is overridable if people want to use something more specific