DroidWizard framework for android

Prasanna Anbazhagan
2 min readJul 11, 2017

--

Now everyone is talking about MVVM framework for android and I am suggesting developers a new framework DroidWizard.

DroidWizard is similar to MVVM. Then what is the difference

DroidWizard has ModelEngine, ViewModel and View instead of

Model, View and ViewModel.

DroidWizard concept is that the data in the app is shared to entire app instead of single view.. So fetching data and handling data from API, Database everything will be handled by ModelEngine that runs in the whole application level with application context instead of views context.

The ModelEngine will decide when to hit API and when to hit cache or Database and when to update the records in db.

The View and ViewModel are same like in MVVM they are attached to each other that the ViewModel will be created and destroyed with respect to views lifecycle.

View is dumb he knows setting data to view, doing animation etc

class MyActivity extends CoreActivityView<MyViewModel> implements MyVMCallback

ViewModel decides what the view should do. It does the logic for whether the data to be showed or not etc.

class MyViewModel extends CoreViewModel<MyVMCallBack>

Happy coding!

--

--