Has anyone managed to make a kotlin adapter for multiple view types with generics, no casting?
I can’t get rid of a type mismatch error in the onCreateViewHolderMethod.
What would work is returning ShoppingItemViewHolder<*> but then the methods doesn’t fill the contract from RecyclerView.Adapter
Any guess?