MVVM - Building base view Model in Java

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?


I still getting started with Kotlin so finding it a difficult to understand the Kotlin tutorials :wink:

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.

Appreciate your help though.

@saravinfotech Do you still have issues with this?

This topic was automatically closed after 166 days. New replies are no longer allowed.