MVP
模式的全称为Model View Presenter
模式,源于MVC
(Model View Controller
)模式,Model
(Repository
)负责提供数据,View
负责展示数据,接收用户操作并反馈到Presenter
,Presenter
负责处理数据供View
使用,处理用户操作。
MVP
模式的优点包括方便自动化测试,提升关注点分离(improve the [separation of concerns](https://en.wikipedia.org/wiki/Separation_of_concerns) in presentation logic
)。

A simple demo of mvp:MvpDemo