Android是否支持MVC(模型视图控制器)结构?

我想知道,如果 Android支持MVC(模型视图控制器)结构?如果有支持的话
1.什么是控制器?
2.什么是模特?和
3.什么是观点?

请清楚我.我对此有些困惑.

解决方法

Which design patterns are used on Android?

Model-View-Control works fine

The actual Activity class doesn’t extend android’s View class,but it
does,however,handle displaying a window to the user and also handle
the events of that window (onCreate,onPause etc).

This means,that when you are using a MVC pattern,your controller
will actually be a pseudo View-Controller. Since it is handling
displaying a window to the user,with the additional view components
you have added to it with setContentView,and also handling events for
atleast the various activity life cycle events.

In MVC,the controller is supposed to be the main entry point. Which
is a bit debatable if this is the case when applying it to android
development,since the activity is the natural entry point of most
applications.

那么,Android中的伪MVC:

Model =具有主要业务逻辑的实体或类

View =布局,资源和小部件,如EditText

Controller = Activity,Adapter

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...