Mathz app source code
I have been reading about view model architecture and live data in android projects. To put it very crudely view model lets you divide UI and program logic. So you create a ViewModel which will take care of all manipulations of data. And your main UI controller just displays the content.
And by integrating another aspect called live data, you need not worry about the state of your project when there is a configuration change. Like screen rotation. You need not bother creating saved instance state and using this saved values again etc. Reduces a lot of headaches.
To my game mathz, I added these features and published in git repository. You can refer to the source code of the app here.
The app is available in Google play
Comments
Post a Comment