在 MVP 模式里通常包含 4 个要素: (1)View: 负责绘制 UI 元素、与用户进行交互 (在 Android 中体现为 Activity); (2)View interface: 需要 View 实现的接口,View 通过 View interface 与 Presenter 进行交互,降低耦合,方便进行单元测试; (3)Model: 负责存储、检索、操纵数据 (有时也实现一个 Model interface 用来降低耦合); (4)Presenter: 作为 View 与 Model 交互的中间纽带,处理与用户交互的负责逻辑。