MVP-8: Views are passive and should always manage and expose only their state.


Description

Views contain attributes which can be visible and non-visible. It is the Presenter’s task to change the state of the View. However, whenever an Activity is killed, it is not the task of the Presenter to check this and reconfigure this Activity.

Example

We created a simple MVP login Application.

Login Injection

As can be seen in this graph. Views are passive. They only do what their presenters tell them to do.

Check out the Github page to view the complete repository.