The Exploration and Practice of MVVM Pattern on Android Platform
- 10.2991/icmmita-16.2016.205How to use a DOI?
- MVVM; RSS; Data Binding; Android
How UI designers and business engineers collaborate to development apps on Android platform conveniently and effectively is a difficult problem to tackle when projects get more complicate and need more effort. This paper compared the commonality and variability of MVVM with the commonly used MVC and MVP patterns. An RSS subscription app was designed and implemented by using Data Binding and Rome.jar techniques and the use of MVVM pattern on Android platform was explored. Three key points to solve the problem of bidirectional binding of views and view models were described. Decoupling of Model and View further separated data, logic and view and satisfied the requirements of different format of views for the same model. Therefore, duplicated code was reduced. The more important is that the coupling level of code was decreased for multiple developers. The software design objective of "high cohesion and low cupping" was achieved and efficiently collaborative development was accomplished.
- © 2017, the Authors. Published by Atlantis Press.
- Open Access
- This is an open access article distributed under the CC BY-NC license (http://creativecommons.org/licenses/by-nc/4.0/).
Cite this article
TY - CONF AU - Wei Sun AU - Haohui Chen AU - Wen Yu PY - 2017/01 DA - 2017/01 TI - The Exploration and Practice of MVVM Pattern on Android Platform BT - Proceedings of the 2016 4th International Conference on Machinery, Materials and Information Technology Applications PB - Atlantis Press SN - 2352-538X UR - https://doi.org/10.2991/icmmita-16.2016.205 DO - 10.2991/icmmita-16.2016.205 ID - Sun2017/01 ER -