Skip to content

Architecture Guidelines

Abhilash G edited this page Dec 9, 2018 · 4 revisions

The architecture to be followed for the Melonicious project will be based on the MVVM (Model View View-Model) architectural pattern.

  • View ( UI layer ): This is where Activities, Fragment, and other UI standard Android components live. It is devoid of any application logic. It is merely responsible for displaying the data. It also handles the user interactions like clicks, inputs, spinner element selection and triggers the right action in the Presenter if needed.

  • View-Model ( Connector ): View-Model connects the Model and the ViewModel. It’s responsible for transforming the data from the Model. It provides data streams to the View. It also uses hooks or callbacks to update the View. It’ll ask for the data from the Model.

  • Model (Data Layer): This holds the data of the application. It cannot directly talk to the View. Generally, it’s recommended to expose the data to the ViewModel through Observables.

Clone this wiki locally