Hi There,
I have recently learned MVVM architecture, I am still using Java. I am not able to figure out a way to build a common View model factory so that I don’t have to keep initializing my ViewModels in my view classes.
Can someone point me to a tutorial on building this using Java, or would someone be kind enough to explain the same, please?
Note:
I still getting started with Kotlin so finding it a difficult to understand the Kotlin tutorials