速報APP / 教育 / Avenging - MVP project

Avenging - MVP project

價格:免費

更新日期:2016-08-10

檔案大小:2.8M

目前版本:1.0

版本需求:Android 4.2 以上版本

官方網站:http://www.joaquimley.com

Email:joaquimley@gmail.com

Avenging - MVP project(圖1)-速報App

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

Avenging - MVP project(圖2)-速報App

What is MVP?

ModelViewPresenter

---------------------------

Avenging - MVP project(圖3)-速報App

- 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.

Avenging - MVP project(圖4)-速報App

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.

Avenging - MVP project(圖5)-速報App