Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.01 KB

README.md

File metadata and controls

26 lines (18 loc) · 1.01 KB

Android MVP

What

#Model, View and Presenter #Responsible for presentation layer #Separate the presentation layer from the logic

Why

It makes view independent from data source(eg. data from database, data from network etc.) Data source is changed wihtout any change in view logic.

Components

#Model - Is is the data to be shown by view #View - Invoke method from presenter #Presenter - It controls the view and model, it says what set of action to do when user interact with UI.

In Example interceptor has been used to write the business logic, It can get data from web service, database etc. locations. However the business logic can be written in presenter as well.

generic on action completed interface is created, it can be customize as per need.

#UI

device-2018-01-28-162654

device-2018-01-28-162717