search

Home  >  Q&A  >  body text

android - APP架构设计的一些迷惑

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

PHP中文网PHP中文网2812 days ago740

reply all(2)I'll reply

  • 迷茫

    迷茫2017-04-17 13:38:39

    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

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 13:38:39

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

    reply
    0
  • Cancelreply