android - APP架构设计的一些迷惑
PHP中文网
PHP中文网 2017-04-17 13:36:39
0
2
703

Android应用开发的架构设计怎么样比较好? 我目前想到就两种架构,一直是纵向,即依据模块的功能进行划分,比如登陆模块,从Activity到数据访问层,另一种是横向划分,即项目的全部数据访问层,服务层,视图层等。更准确的说是项目的包结构是怎么样的,望有经验的前辈赐教。。。

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
迷茫

Personally, I still recommend using the latter one. Using the mvc architecture can decouple the project very well, and it will not be painful if you change it in the future. The package structure is like this

This is a relatively small project, but it feels good to divide it this way

伊谢尔伦

If the project is relatively large and is developed in modules, it will be clearer to subcontract according to the module name

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!