第31天 mvp

interactor调用接口

Activity包含Presenter,这样界面上的操作就会通知到Presenter.

Presenter调用view接口, Activity实现view接口,这样Presenter就可以改变Activity

有人将Presenter命名为Controller,view接口为Listener.

Activity包含Controller,界面操作调用Controller

Controller调用Listener接口,Activity实现Listener,这样Controller就可以改变Activity

https://www.zhihu.com/question/38528132/answer/77383278

http://blog.csdn.net/chziroy/article/details/45599405

原文地址:https://www.cnblogs.com/javastart/p/6017236.html