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
Thank you very much for your response @lewis-h, is there some course here in raywenderlich which I can use as a reference to learn this and implement simultaneously . This seems kind of overwhelming for me as I am still in the beginning stages.