摘要
针对Android应用开发中Activity庞大臃肿、代码耦合度高及软件层次结构模糊等问题,通过对传统开发模式MVC和目前主流开发模式MVP的比较和分析研究,发现MVP模式能够很好的解决这些问题。在分析MVP模式的基础上,提出了基于MVP模式的Android应用开发需要包含Model、View、View interface和Presenter 4个关键部分,最后应用于教师任课信息管理系统的登录模块的开发,从而验证了该模式的可行性。
There are many problems in the development of Android application,such as the high activity,high degree of coupling and the software structure of fuzzy.Through the comparison and analysis of the traditional development mode of MVC and the current mainstream development mode of MVP,it is found that the MVP can solve these problems well. Based on the analysis of MVP,this paper puts forward that Android application development mode of MVP needs to include four key parts of Model,View,View interface and Presenter,and finally it is applied to the development of login module of teachers' teaching information management,Thus verifying the feasibility of the model.
作者
倪红军
NI Hong-jun(Taizhou College, Nanjing Normal University, Taizhou 225300, Chin)
出处
《电子设计工程》
2018年第11期6-9,13,共5页
Electronic Design Engineering
基金
教育部-Google2014年校企合作产学合作项目(PO640068)
Google2015年奖教金资助(PO64007482)