Android框架结构到MFC / Win32的结构的比较? [英] Comparisons of the Android framework's structure to the MFC/Win32's structure?

查看:178
本文介绍了Android框架结构到MFC / Win32的结构的比较?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发Android和Windows两种方式(使用MFC有时win32)中昨天我随口比较这两个框架。他们是非常,非常明显的不同,并因此为Windows开发是开发Android ALOT不同。我想知道,人们认为像Android的框架是结构上优于像Win32的框架(如消息系统VS事件监听器)。我想在这种上比较普遍的看法的想法。

I develop for both Android and Windows (using MFC and sometimes win32) and yesterday I was casually comparing the two frameworks. They are very, very different obviously, and as a result developing for windows is ALOT different to developing for Android. I was wondering where people think frameworks like Android are superior structurally to frameworks like win32 (eg Message system vs Event Listeners). I want an idea of the general opinion on this kind on comparison.

我想补充一点,据我所知,这些框架运行在非常不同的设备(很明显,Windows有处理了很多,因为它必须应付多种输出设备和其复杂的窗口界面的多个IO和用户输入)但是必须有一些核心功能这些框架共享和可比较..而如果没有,我是一个傻瓜(这毫无疑问会有人指出)我很想知道为什么这样的比较是无效:)欢呼声。

I would like to add that I understand that these frameworks run on very different devices (obviously Windows has to deal with a lot more IO and user input because of the multiple Output devices it has to cope with and its complex window GUI), however there must be some core features which these frameworks share and that can be compared.. and if there aren't and I am being an idiot (which no doubt someone will point out) I would love to know why such a comparison is invalid :) cheers.

另一个例子是Android的缺乏MVP结构VS Windows的MFC文档/视图。

Another example would be Android lack of MVP structure vs Windows' MFC Doc/View.

推荐答案

它是一个很长一段时间,因为我已经感动了MFC,但我本来以为你可以在意图模式比较的消息的?

Its been a long while since I've touched mfc but I would have thought that you could compare the intent model to that of messaging?

至于MVC我们已经在通过使用作为窗口管理器的单一活动,实现这一解决,片段视图和控制器是直的Java类。
我认为MVP可以用类似的活动,为presenters来满足。可能使用的广播接收机作为一个前端控制器。

With regards to MVC we've settled on achieving this via the use of a single activity as a window manager, fragments are views and controllers are straight Java classes. I think MVP could be satisfied similarly with activities being presenters. Possibly using a broadcast receiver as a front controller.

这篇关于Android框架结构到MFC / Win32的结构的比较?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆