SlideShare a Scribd company logo
M V PPattern
View
Model
(Data)
Model
(Data)
View
Model
(Data)
View
Most of the modern Android
applications just use View-Model
architecture.
WHY
Model Layer
The Model Layer represents the source of the data that we want to display on the View Layer
View Layer
The View is usually represented by either an activity or fragment depending on application’s approach
Presenter Layer
The Presenter is a class created solely to be the communicator between the View Layer and Model Layer.
MVP
Model
Data: Models, DB
business logic
View
UI: Activity,
Fragment
Presenter
Mediator
Presenter will :
‱ Update View
‱ Update Model
Forward User
Action
Updates
Request Data
Supply
Request Data
MVP makes views independent from our data source.
Each layer had their respective duties so that more test-friendly.
Simplify complex tasks with divide it into sections simpler and easier.
Benefit
Let’s begin to ngoding 
https://github.com/BayuWijayaPermanaPutra/WorkshopMVPCodelabs
Complete project of Sample App using MVP Pattern

More Related Content

PPTX
Model View Presenter (MVP) In Aspnet
PPTX
Introduction To Model View Presenter
PPTX
Design Pattern - MVC, MVP and MVVM
PPTX
Acrhitecture deisign pattern_MVC_MVP_MVVM
PPTX
MVVM ( Model View ViewModel )
PPTX
MVVM with WPF
 
PDF
Mvc, mvp, mvvm...
Model View Presenter (MVP) In Aspnet
Introduction To Model View Presenter
Design Pattern - MVC, MVP and MVVM
Acrhitecture deisign pattern_MVC_MVP_MVVM
MVVM ( Model View ViewModel )
MVVM with WPF
 
Mvc, mvp, mvvm...

What's hot (20)

PPTX
MVx patterns in iOS (MVC, MVP, MVVM)
PPTX
MVVM presentation
PDF
MVC Seminar Presantation
PDF
Ui design patterns
PPT
Ppt of Basic MVC Structure
PPT
Why MVC?
PPTX
Mvc fundamental
ODP
What is MVC?
PPT
MVC(Model View Controller),Web,Enterprise,Mobile
 
PPTX
Model view controller (mvc)
PPTX
Training: MVVM Pattern
PDF
Model View Presenter For Android
PDF
Model View Presenter For Android
PPTX
Software architectural design patterns(MVC, MVP, MVVM, VIPER) for iOS
PDF
Model View Presenter For Android
PPTX
Mvc vs mvp vs mvvm a guide on architecture presentation patterns
PPTX
MVVM In Use
PDF
MVVM in iOS presentation
MVx patterns in iOS (MVC, MVP, MVVM)
MVVM presentation
MVC Seminar Presantation
Ui design patterns
Ppt of Basic MVC Structure
Why MVC?
Mvc fundamental
What is MVC?
MVC(Model View Controller),Web,Enterprise,Mobile
 
Model view controller (mvc)
Training: MVVM Pattern
Model View Presenter For Android
Model View Presenter For Android
Software architectural design patterns(MVC, MVP, MVVM, VIPER) for iOS
Model View Presenter For Android
Mvc vs mvp vs mvvm a guide on architecture presentation patterns
MVVM In Use
MVVM in iOS presentation
Ad

Viewers also liked (16)

PPTX
A GWT Application with MVP Pattern Deploying to CloudFoundry using Spring Roo
PDF
Libra slide deck 2016
PDF
Is Activity God? ~ The MVP Architecture ~
PPT
Pourquoi les PowerPoint sont lamentables
PDF
DOCX
Bilal Saeed Khan-f
PDF
Resume
PPTX
äž­äž–ăƒ»ăƒ«ăƒă‚”ăƒłă‚čæœŸă«ăŠă‘ă‚‹é’ăźé€†è„Č
PDF
Broadcast Release
PDF
2006-2008 Awards
PPTX
La bella durmiente
PPTX
English for business - A
DOCX
Final Paper
PDF
おさかăȘæ—„ć’Œ
DOC
Regimento interno do conselho municipal de saĂșde de jequiĂ© 01
PDF
Kimberly Babula Resume
A GWT Application with MVP Pattern Deploying to CloudFoundry using Spring Roo
Libra slide deck 2016
Is Activity God? ~ The MVP Architecture ~
Pourquoi les PowerPoint sont lamentables
Bilal Saeed Khan-f
Resume
äž­äž–ăƒ»ăƒ«ăƒă‚”ăƒłă‚čæœŸă«ăŠă‘ă‚‹é’ăźé€†è„Č
Broadcast Release
2006-2008 Awards
La bella durmiente
English for business - A
Final Paper
おさかăȘæ—„ć’Œ
Regimento interno do conselho municipal de saĂșde de jequiĂ© 01
Kimberly Babula Resume
Ad

Similar to Slide Presentation of MVP Pattern Concept (20)

PPTX
Android DesignArchitectures.pptx
PPTX
Rendra Toro - Model View Presenter
PPTX
Design patterns in android
PPTX
My perspective on MVP and architecture discussions
DOCX
Mvc, mvp & mvvm (erp)
PPTX
Mvp tech talks
 
PDF
Model View Presenter
PPSX
Android architecture components
PDF
Infinum Android Talks #12 - MVP design pattern for Android Apps
PDF
MVP Clean Architecture
PPTX
Ios models
PDF
PPTX
UI Design Patterns
PPT
Design pattern in android
PDF
How I Accidentally Discovered MVVM
PDF
Model view view model
PDF
Models used in iOS programming, with a focus on MVVM
PPTX
MVP vs MVVM : a fast introduction
PDF
iOS architecture patterns
Android DesignArchitectures.pptx
Rendra Toro - Model View Presenter
Design patterns in android
My perspective on MVP and architecture discussions
Mvc, mvp & mvvm (erp)
Mvp tech talks
 
Model View Presenter
Android architecture components
Infinum Android Talks #12 - MVP design pattern for Android Apps
MVP Clean Architecture
Ios models
UI Design Patterns
Design pattern in android
How I Accidentally Discovered MVVM
Model view view model
Models used in iOS programming, with a focus on MVVM
MVP vs MVVM : a fast introduction
iOS architecture patterns

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Digital Strategies for Manufacturing Companies
PDF
top salesforce developer skills in 2025.pdf
PDF
System and Network Administraation Chapter 3
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
history of c programming in notes for students .pptx
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Essential Infomation Tech presentation.pptx
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Softaken Excel to vCard Converter Software.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
CHAPTER 2 - PM Management and IT Context
Upgrade and Innovation Strategies for SAP ERP Customers
Digital Strategies for Manufacturing Companies
top salesforce developer skills in 2025.pdf
System and Network Administraation Chapter 3
Adobe Illustrator 28.6 Crack My Vision of Vector Design
How Creative Agencies Leverage Project Management Software.pdf
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Which alternative to Crystal Reports is best for small or large businesses.pdf
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
history of c programming in notes for students .pptx
Design an Analysis of Algorithms I-SECS-1021-03
PTS Company Brochure 2025 (1).pdf.......
Essential Infomation Tech presentation.pptx
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...

Slide Presentation of MVP Pattern Concept

  • 2. View Model (Data) Model (Data) View Model (Data) View Most of the modern Android applications just use View-Model architecture. WHY
  • 3. Model Layer The Model Layer represents the source of the data that we want to display on the View Layer View Layer The View is usually represented by either an activity or fragment depending on application’s approach Presenter Layer The Presenter is a class created solely to be the communicator between the View Layer and Model Layer. MVP
  • 4. Model Data: Models, DB business logic View UI: Activity, Fragment Presenter Mediator Presenter will : ‱ Update View ‱ Update Model Forward User Action Updates Request Data Supply Request Data
  • 5. MVP makes views independent from our data source. Each layer had their respective duties so that more test-friendly. Simplify complex tasks with divide it into sections simpler and easier. Benefit
  • 6. Let’s begin to ngoding  https://github.com/BayuWijayaPermanaPutra/WorkshopMVPCodelabs Complete project of Sample App using MVP Pattern

Editor's Notes

  • #3: MVP hardir karena adanya permasalahan dalam pembangunan Android kebanyakkan saat ini yang hanya menggunakan Model dan View layer. Kenapa menjadi masalah : 1. Pembangunan aplikasi yang kompleks akan membingungkan 2. Semua kode (logic, request code) menjadi di satu class view. Sehingga memberatkan view itu sendiri 3. Tidak test-friendly 4. Sulit untuk mengembangkan aplikasi yang berskala besar
  • #5: Diagram yang menggambarkan hubungan antar layer (Model, Presenter dan View) Model Kelas model (Kelas Objek) atau logic mengambil data dari server berada di layer model. - Bertugas untuk men-supply data yang diminta oleh presenter View Activity atau fragment ada di layer View. View bertugas untuk mengirimkan aksi dari pengguna dan menampilkan update (perubahan) tampilan dari presenter Presenter Presenter disebut juga mediator merupakan class yang menjembatani
  • #6: Jadi keuntungan MVP Pattern : MVP membuat view (activity/ fragment) menjadi lebih ringan karena tidak adanya proses pemanggilan data atau request data Setiap layer (Model, View dan Presenter) memiliki tugasnya masing-masing sehingga lebih memudahkan kita untuk melakukan pe