架构梳理
2015-11-12 12:52:41 0 举报
android mvvm设计模式
作者其他创作
大纲/内容
ViewModel
4
Presenter
DataProvider
View
ListSqlViewModel
SqlListModel
initModel():SqlListModelloadMore()refresh()
Activity
SqlModel
SqlManager
ModelCallback
onLoadingSuccess()onLoadingError()
MVP
loadMore() page++refresh() page=1
Update
Model
7
User Action
SqlViewModel
getData()initModel():SqlModel
NetListModel
MVVM
getData()
6
ListNetViewModel
initModel():NetListModelloadMore()refresh()
NetModel
VMCallbackHttpRequest
configParams()setRequestURL()setRequestMethod()getData()
HttpManager
Notify
DataBinding
HttpCallback
1
HttpRequest
configParams()setRequestURL()setRequestMethod()
3
Controller
NetViewModel
getData()initModel():NetModel
2
View|View Controller
dataBinding
VMCallbackSqlManager
Notify Update
VMCallback
5
Android MVC
Bean
0 条评论
下一页