價格:免費
更新日期:2016-08-10
檔案大小:2.8M
目前版本:1.0
版本需求:Android 4.2 以上版本
官方網站:http://www.joaquimley.com
Email:joaquimley@gmail.com
BLOG POST: https://blog.joaquimley.com/avenging-android-mvp-23461aebe9b5#.d03ea0lv4
GITHUB: https://github.com/JoaquimLey/avenging
Uses Marvel Comics API as a service which contains all the information about Marvel's library.
All Data provided by Marvel. © 2016 MARVEL
What is MVP?
ModelViewPresenter
---------------------------
- View is a layer that displays data and reacts to user actions. On Android, this could be an Activity, a Fragment, an android.view.View or a Dialog.
- Model is a data access layer such as database API or remote server API.
- Presenter is a layer that provides View with data from Model. Presenter also handles background tasks.
Most of the modern Android applications just use View-Model architecture.
Programmers are involved into fight with View complexities instead of solving business tasks.
Using only Model-View in your application you usually end up with "everything is connected with everything", which translates into harder scalability. With the MVP approach it easier to understand the role of each element, KISS principle!
Abstracting the business logic (data and network) layer from the UI enables a painless multi-platform flavour orient development process.