SlideShare a Scribd company logo
1 of 7
Silp aec nM V
vu p r o V M
inA do
n rid
Lorenzo Maiorfi
In v civ E g e r g
n o a t e n in ein
Pt r M V
at n V M
e






Éu od i d s np t r rlt i al ra
n e eig at n eaiv l e
e
’a
«pee tt nu
rsnaio /i»
It d t d M rsfc m
nr ot a icoot o e
o
o
s e iaiza io ed l rsnaio M d l
p c lz z n e Pee tt n o e
d M r F we
i at o lr
in
D r ad l atr M C d l u l ee it
eiv a p t n V , a q ae rd a
e
il r c aeo iet od
pin ip l b t
iv i…
…ottenere una netta separazione delle
responsabilità tra i diversi moduli coinvolti
nella gestione della UI di un’applicazione
Cm o et
o p n ni






MODEL : èc s u od l s m d i m d lc e
o t it al ie e e o ui h
it
’in
c nr u c n a im lm nael
o t iso o d pe e tr a
ib
lg apo es c m otm nod l p la io e
o ic /rc si/o p r e t el pic z n
a
’a
VIEW : d sr o o n l p t fr ad
(S)
eciv n , el iat om i
a
a
ly u/ n ein /x i reim no gi ee e td
a o t e d r gu d ifr e t, l lm ni i
r
«p r» inefciaue t (e z d sr en il
ua tr c tne sn a eciv re
a
c m otm no m s l l s et)
o p r e t, a oo ’ap t
a
o
VIEW
MODEL(S) : o g t id am nepiv d
g et e l e t r i i
i,
d e d n e c ev ic ln i d td ev rol V we
ip n e z, h e oa o ai a es e ie
im lm na o inm n r at t , il
pe e tn ,
a iea s at
r a
c m otm nod u ainefciaue t
o p r e t i n tr c tne
a
a
Ee p N tic eF c b o
sm io oif h a e o k








IMODEL ep n l fn io ait p r
l
s o e a u z n là e
e u eael n tic ed s ae
n m rr e oif h et t
in
al tnelg ao ft t e od ae
l e t o g t, ilae d rin t,
’u
r
s t fr ad c l z n d o g t
ot om i ol io e i g et
o
e
i
«pa »
lin
L VIEW èc m o t d ee e td
a
o p s a lm ni i
a
ly u s e if i d l p t fr a
a o t p c ic el iat om
a
a
( is ie , T xV w I a e ie ,
L t w e tie , m g V w
V
L e ra o te c
in aL y u, c.)
IVIEW
l
MODEL «p rn» c nie eil
ae t o t n
too( oif aio s , i c m n i
itl «N tic t n ») o a d
rlt i a p l ni d l tob r u a
eaiv i us t el o la e n
a
a
c l z n d VE M D L h de »
ol io e i IW O E «c ilrn
e
IVIEW
l
MODEL «c il» c nie eil
hd o tn
reim noal v tr il o e
ifr e t l aa e n m
’a
d l uoe ilet d l n tic , l
el tr, ts el oif a a
’a
o
a
c tg r eu reim notm oae
ae oia n ifr e t e p rl
Ee p N tic eF c b o
sm io oif h a e o k








L m p auat po r t d l VE
a a p tr r rpieà el IW
a
a
ed l IW O E p òesr
e VE M D L u see
«n trl» ( stoo a tr ets
auae e. itl, uoe et
o
n tic )
oif a…
…om n ( sim a in a aa, ic n
e o e. m g e v tr o a
c tg r )
ae oia
U apo r t d l IW O E p ò
n rpieà e VE M D L u
esr «c l lt» (e do l r auaa
see ac aa ra - ny iv ltt
o
,
a tm t a e t q a d c m ia o
uo aic m ne u n o a b n
at po r t d c i d e d , e.
le rpieà a u ip n e s
r
«eà d l n tic )
t» el oif a
a
U VE M D L s o ea c e
n IW O E ep n n h
«c m n i», o s a io i sae aed
o ad
sia z n c tn t a
inea io i ue t oe e t«inen
trz n tne v ni
tri»
U VE M D L olv e e ts sre
n IW O E s l a v ni e ev
e
n tic r l VE c l g t, n nl
oif ae e IW ol ae o e
e
«m n oa d etm ne at e t
a ip l» irt e t, lim ni
a
r
n d e d rb e
e ip n ee b !
Nt
oe





Ip t r MVVM ètnop ef a eq a t p
l at n
e
a t iù f c u no iù
ic
«n trl» èil o od lg r VE a
auae
m d i e ae IW
VE M D L( sB d ginX M , K o k uJ
IW O E e. in in
A L n co t ,
S
A g lr , A do B d g e c
n uaJ n rid in in , c.)
S
Ip t r MVVM èil e z m l r p r
l at n
e
m zo igioe e
a pic r l U it et ga c ea ly r I
p lae o n T s
in n h la e U
N l atr MVVM l c m n a io et d es
ep t n
e
a o u ic z n r iv ri
a
VE M D L( de. c ilrnd u as sa
IW O E a s h de i n t s
e
g rrh )a v n t ic m nesg e d u
eac ia vie e ip a e t e u n o n
m d l d m sa in p bs b p r in izae
o el i esg g u / , e m im z r
o
u
il uu a c p ia e t, t m eu «e e t
m to co p m no r it n v n
a
a ge ao»
g rg tr
DM
E O
A do B d g(rm w r d A d Tu
n rid in in f e ok i n y s i,
a
rp r il s G H b
e eib e u it u )












O sra ls
b ev be
B d g
in in
D p n a t b ev be
e e d nO sra ls
C l cio O sra ls
ol t n b ev be
e
C l cio O sres
ol t n b ev r
e
Cm ad
o mns
E e t( ie m d l ie ev w o ev w o e)
v ni v w o ev w ie m d l ie m d l
U it et g( o Jn )
n Ts
in c n u it

More Related Content

What's hot

Linkedin Example Of My Work Slideshow
Linkedin Example Of My Work SlideshowLinkedin Example Of My Work Slideshow
Linkedin Example Of My Work SlideshowMichael Westland-Rose
 
Infographic: Workforce Mobility on the Rise
Infographic: Workforce Mobility on the RiseInfographic: Workforce Mobility on the Rise
Infographic: Workforce Mobility on the RiseRingCentral, Inc.
 
FRANKENVRIJ_MENU_090916
FRANKENVRIJ_MENU_090916FRANKENVRIJ_MENU_090916
FRANKENVRIJ_MENU_090916Alexander Remi
 
B&i2013 donderdag 15.15_zaal_d_integral facade construction
B&i2013 donderdag 15.15_zaal_d_integral facade constructionB&i2013 donderdag 15.15_zaal_d_integral facade construction
B&i2013 donderdag 15.15_zaal_d_integral facade constructionBouwmaterialen_Innovatie
 
Dramatic conventions
Dramatic conventionsDramatic conventions
Dramatic conventionsKerry Allen
 
Letter of Recommendation
Letter of RecommendationLetter of Recommendation
Letter of RecommendationSwadesh Gupta
 
Auca de Sant Ignasi
Auca de Sant IgnasiAuca de Sant Ignasi
Auca de Sant Ignasimoflaquer
 
Pubinno_Taptronics_Backgrounder for Media
Pubinno_Taptronics_Backgrounder for MediaPubinno_Taptronics_Backgrounder for Media
Pubinno_Taptronics_Backgrounder for MediaElina Belija Yaman
 
Multiple Nuclei Model by Harris and Ullman (1945)
Multiple Nuclei Model by Harris and Ullman (1945)Multiple Nuclei Model by Harris and Ullman (1945)
Multiple Nuclei Model by Harris and Ullman (1945)Hrishikesh Satpute
 
DesignIt - Make killer opening slides
DesignIt - Make killer opening slidesDesignIt - Make killer opening slides
DesignIt - Make killer opening slidesIshan Agnihotri
 
Upcoming Kharkiv techno musician Daniel Daraban is showing some brisk moves t...
Upcoming Kharkiv techno musician Daniel Daraban is showing some brisk moves t...Upcoming Kharkiv techno musician Daniel Daraban is showing some brisk moves t...
Upcoming Kharkiv techno musician Daniel Daraban is showing some brisk moves t...Music Promotion Club
 
donation appreciation letter to NLIHC_1
donation appreciation letter to NLIHC_1donation appreciation letter to NLIHC_1
donation appreciation letter to NLIHC_1Kelvin Xuna
 

What's hot (19)

What do employers really want?
What do employers really want?What do employers really want?
What do employers really want?
 
Educación ambiental
Educación ambiental Educación ambiental
Educación ambiental
 
Educación ambiental
Educación ambiental Educación ambiental
Educación ambiental
 
Linkedin Example Of My Work Slideshow
Linkedin Example Of My Work SlideshowLinkedin Example Of My Work Slideshow
Linkedin Example Of My Work Slideshow
 
Miguel
MiguelMiguel
Miguel
 
Infographic: Workforce Mobility on the Rise
Infographic: Workforce Mobility on the RiseInfographic: Workforce Mobility on the Rise
Infographic: Workforce Mobility on the Rise
 
FRANKENVRIJ_MENU_090916
FRANKENVRIJ_MENU_090916FRANKENVRIJ_MENU_090916
FRANKENVRIJ_MENU_090916
 
B&i2013 donderdag 15.15_zaal_d_integral facade construction
B&i2013 donderdag 15.15_zaal_d_integral facade constructionB&i2013 donderdag 15.15_zaal_d_integral facade construction
B&i2013 donderdag 15.15_zaal_d_integral facade construction
 
Dramatic conventions
Dramatic conventionsDramatic conventions
Dramatic conventions
 
Letter of Recommendation
Letter of RecommendationLetter of Recommendation
Letter of Recommendation
 
Auca de Sant Ignasi
Auca de Sant IgnasiAuca de Sant Ignasi
Auca de Sant Ignasi
 
Vanille2
Vanille2Vanille2
Vanille2
 
Canywhere. vasara'18
Canywhere. vasara'18Canywhere. vasara'18
Canywhere. vasara'18
 
Pubinno_Taptronics_Backgrounder for Media
Pubinno_Taptronics_Backgrounder for MediaPubinno_Taptronics_Backgrounder for Media
Pubinno_Taptronics_Backgrounder for Media
 
Multiple Nuclei Model by Harris and Ullman (1945)
Multiple Nuclei Model by Harris and Ullman (1945)Multiple Nuclei Model by Harris and Ullman (1945)
Multiple Nuclei Model by Harris and Ullman (1945)
 
Video game market and trendsinfographicst
Video game market and trendsinfographicstVideo game market and trendsinfographicst
Video game market and trendsinfographicst
 
DesignIt - Make killer opening slides
DesignIt - Make killer opening slidesDesignIt - Make killer opening slides
DesignIt - Make killer opening slides
 
Upcoming Kharkiv techno musician Daniel Daraban is showing some brisk moves t...
Upcoming Kharkiv techno musician Daniel Daraban is showing some brisk moves t...Upcoming Kharkiv techno musician Daniel Daraban is showing some brisk moves t...
Upcoming Kharkiv techno musician Daniel Daraban is showing some brisk moves t...
 
donation appreciation letter to NLIHC_1
donation appreciation letter to NLIHC_1donation appreciation letter to NLIHC_1
donation appreciation letter to NLIHC_1
 

Viewers also liked

OCI NV December Corporate Presentation
OCI NV December Corporate PresentationOCI NV December Corporate Presentation
OCI NV December Corporate PresentationPLG Consulting
 
Megafone Edição Dezembro
Megafone Edição Dezembro Megafone Edição Dezembro
Megafone Edição Dezembro Roger Peres
 
Praga - blog alfandegário
Praga - blog alfandegárioPraga - blog alfandegário
Praga - blog alfandegárioalfandegario
 
A favor de una cultura de paz.
A favor de una cultura de paz.A favor de una cultura de paz.
A favor de una cultura de paz.jimenavences
 
Pacto Nacional pela Alfabetização na Idade Certa
Pacto Nacional pela Alfabetização na Idade CertaPacto Nacional pela Alfabetização na Idade Certa
Pacto Nacional pela Alfabetização na Idade CertaMaria de Lurdes Santos
 
Sesion7
Sesion7Sesion7
Sesion7cefic
 
Edital do concurso_pblico_n_002_de_2011
Edital do concurso_pblico_n_002_de_2011Edital do concurso_pblico_n_002_de_2011
Edital do concurso_pblico_n_002_de_2011José Daniel
 
Jogo formas geometricas_iii
Jogo formas geometricas_iiiJogo formas geometricas_iii
Jogo formas geometricas_iiiclaumarjoel
 
038 2011-poder executivo última versão ecaminhado em 28 de outubro
038 2011-poder executivo última versão ecaminhado em 28 de outubro038 2011-poder executivo última versão ecaminhado em 28 de outubro
038 2011-poder executivo última versão ecaminhado em 28 de outubroOlivânio Remígio
 
Sesion9
Sesion9Sesion9
Sesion9cefic
 

Viewers also liked (20)

Case history: hotel branding - Bivio Group
Case history: hotel branding - Bivio GroupCase history: hotel branding - Bivio Group
Case history: hotel branding - Bivio Group
 
OCI NV December Corporate Presentation
OCI NV December Corporate PresentationOCI NV December Corporate Presentation
OCI NV December Corporate Presentation
 
Propaganda tech
Propaganda techPropaganda tech
Propaganda tech
 
Simbolismo renan
Simbolismo renanSimbolismo renan
Simbolismo renan
 
Megafone Edição Dezembro
Megafone Edição Dezembro Megafone Edição Dezembro
Megafone Edição Dezembro
 
Natal
NatalNatal
Natal
 
Circulacion sanguinea
Circulacion sanguineaCirculacion sanguinea
Circulacion sanguinea
 
Praga - blog alfandegário
Praga - blog alfandegárioPraga - blog alfandegário
Praga - blog alfandegário
 
A favor de una cultura de paz.
A favor de una cultura de paz.A favor de una cultura de paz.
A favor de una cultura de paz.
 
Pacto Nacional pela Alfabetização na Idade Certa
Pacto Nacional pela Alfabetização na Idade CertaPacto Nacional pela Alfabetização na Idade Certa
Pacto Nacional pela Alfabetização na Idade Certa
 
Ecoexpez
EcoexpezEcoexpez
Ecoexpez
 
Poluição da água
Poluição da águaPoluição da água
Poluição da água
 
Saúde pública
Saúde públicaSaúde pública
Saúde pública
 
Sesion7
Sesion7Sesion7
Sesion7
 
Edital do concurso_pblico_n_002_de_2011
Edital do concurso_pblico_n_002_de_2011Edital do concurso_pblico_n_002_de_2011
Edital do concurso_pblico_n_002_de_2011
 
Jogo formas geometricas_iii
Jogo formas geometricas_iiiJogo formas geometricas_iii
Jogo formas geometricas_iii
 
Eutanasia
EutanasiaEutanasia
Eutanasia
 
Sunflowers
SunflowersSunflowers
Sunflowers
 
038 2011-poder executivo última versão ecaminhado em 28 de outubro
038 2011-poder executivo última versão ecaminhado em 28 de outubro038 2011-poder executivo última versão ecaminhado em 28 de outubro
038 2011-poder executivo última versão ecaminhado em 28 de outubro
 
Sesion9
Sesion9Sesion9
Sesion9
 

Android - MVVM - lorenzo maiorfi

  • 1. Silp aec nM V vu p r o V M inA do n rid Lorenzo Maiorfi In v civ E g e r g n o a t e n in ein
  • 2. Pt r M V at n V M e     Éu od i d s np t r rlt i al ra n e eig at n eaiv l e e ’a «pee tt nu rsnaio /i» It d t d M rsfc m nr ot a icoot o e o o s e iaiza io ed l rsnaio M d l p c lz z n e Pee tt n o e d M r F we i at o lr in D r ad l atr M C d l u l ee it eiv a p t n V , a q ae rd a e il r c aeo iet od pin ip l b t iv i… …ottenere una netta separazione delle responsabilità tra i diversi moduli coinvolti nella gestione della UI di un’applicazione
  • 3. Cm o et o p n ni    MODEL : èc s u od l s m d i m d lc e o t it al ie e e o ui h it ’in c nr u c n a im lm nael o t iso o d pe e tr a ib lg apo es c m otm nod l p la io e o ic /rc si/o p r e t el pic z n a ’a VIEW : d sr o o n l p t fr ad (S) eciv n , el iat om i a a ly u/ n ein /x i reim no gi ee e td a o t e d r gu d ifr e t, l lm ni i r «p r» inefciaue t (e z d sr en il ua tr c tne sn a eciv re a c m otm no m s l l s et) o p r e t, a oo ’ap t a o VIEW MODEL(S) : o g t id am nepiv d g et e l e t r i i i, d e d n e c ev ic ln i d td ev rol V we ip n e z, h e oa o ai a es e ie im lm na o inm n r at t , il pe e tn , a iea s at r a c m otm nod u ainefciaue t o p r e t i n tr c tne a a
  • 4. Ee p N tic eF c b o sm io oif h a e o k     IMODEL ep n l fn io ait p r l s o e a u z n là e e u eael n tic ed s ae n m rr e oif h et t in al tnelg ao ft t e od ae l e t o g t, ilae d rin t, ’u r s t fr ad c l z n d o g t ot om i ol io e i g et o e i «pa » lin L VIEW èc m o t d ee e td a o p s a lm ni i a ly u s e if i d l p t fr a a o t p c ic el iat om a a ( is ie , T xV w I a e ie , L t w e tie , m g V w V L e ra o te c in aL y u, c.) IVIEW l MODEL «p rn» c nie eil ae t o t n too( oif aio s , i c m n i itl «N tic t n ») o a d rlt i a p l ni d l tob r u a eaiv i us t el o la e n a a c l z n d VE M D L h de » ol io e i IW O E «c ilrn e IVIEW l MODEL «c il» c nie eil hd o tn reim noal v tr il o e ifr e t l aa e n m ’a d l uoe ilet d l n tic , l el tr, ts el oif a a ’a o a c tg r eu reim notm oae ae oia n ifr e t e p rl
  • 5. Ee p N tic eF c b o sm io oif h a e o k      L m p auat po r t d l VE a a p tr r rpieà el IW a a ed l IW O E p òesr e VE M D L u see «n trl» ( stoo a tr ets auae e. itl, uoe et o n tic ) oif a… …om n ( sim a in a aa, ic n e o e. m g e v tr o a c tg r ) ae oia U apo r t d l IW O E p ò n rpieà e VE M D L u esr «c l lt» (e do l r auaa see ac aa ra - ny iv ltt o , a tm t a e t q a d c m ia o uo aic m ne u n o a b n at po r t d c i d e d , e. le rpieà a u ip n e s r «eà d l n tic ) t» el oif a a U VE M D L s o ea c e n IW O E ep n n h «c m n i», o s a io i sae aed o ad sia z n c tn t a inea io i ue t oe e t«inen trz n tne v ni tri» U VE M D L olv e e ts sre n IW O E s l a v ni e ev e n tic r l VE c l g t, n nl oif ae e IW ol ae o e e «m n oa d etm ne at e t a ip l» irt e t, lim ni a r n d e d rb e e ip n ee b !
  • 6. Nt oe    Ip t r MVVM ètnop ef a eq a t p l at n e a t iù f c u no iù ic «n trl» èil o od lg r VE a auae m d i e ae IW VE M D L( sB d ginX M , K o k uJ IW O E e. in in A L n co t , S A g lr , A do B d g e c n uaJ n rid in in , c.) S Ip t r MVVM èil e z m l r p r l at n e m zo igioe e a pic r l U it et ga c ea ly r I p lae o n T s in n h la e U N l atr MVVM l c m n a io et d es ep t n e a o u ic z n r iv ri a VE M D L( de. c ilrnd u as sa IW O E a s h de i n t s e g rrh )a v n t ic m nesg e d u eac ia vie e ip a e t e u n o n m d l d m sa in p bs b p r in izae o el i esg g u / , e m im z r o u il uu a c p ia e t, t m eu «e e t m to co p m no r it n v n a a ge ao» g rg tr
  • 7. DM E O A do B d g(rm w r d A d Tu n rid in in f e ok i n y s i, a rp r il s G H b e eib e u it u )          O sra ls b ev be B d g in in D p n a t b ev be e e d nO sra ls C l cio O sra ls ol t n b ev be e C l cio O sres ol t n b ev r e Cm ad o mns E e t( ie m d l ie ev w o ev w o e) v ni v w o ev w ie m d l ie m d l U it et g( o Jn ) n Ts in c n u it