SlideShare a Scribd company logo
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

PPTX
PPTX
Gramse, K. effective hook
ODP
Es esto :)
PDF
Diagnosing Cancer with Machine Learning
PPTX
Sopa de letras
PDF
Industry Predictions for 2014: Viewability
PDF
Encuentros 6 pagina 18-19
PPTX
Most Common Symptoms of Bad Mercedes Benz Cruise Control Switch in Phoenix
Gramse, K. effective hook
Es esto :)
Diagnosing Cancer with Machine Learning
Sopa de letras
Industry Predictions for 2014: Viewability
Encuentros 6 pagina 18-19
Most Common Symptoms of Bad Mercedes Benz Cruise Control Switch in Phoenix

What's hot (19)

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

Viewers also liked (20)

PDF
Case history: hotel branding - Bivio Group
PDF
OCI NV December Corporate Presentation
PPSX
Propaganda tech
PPTX
Simbolismo renan
PDF
Megafone Edição Dezembro
PDF
Natal
PPT
Circulacion sanguinea
PPT
Praga - blog alfandegário
PPT
A favor de una cultura de paz.
PPTX
Pacto Nacional pela Alfabetização na Idade Certa
PPTX
Ecoexpez
PPTX
Poluição da água
PPT
Saúde pública
PPT
Sesion7
PDF
Edital do concurso_pblico_n_002_de_2011
PPS
Jogo formas geometricas_iii
PPT
PPTX
PDF
038 2011-poder executivo última versão ecaminhado em 28 de outubro
PPT
Sesion9
Case history: hotel branding - Bivio Group
OCI NV December Corporate Presentation
Propaganda tech
Simbolismo renan
Megafone Edição Dezembro
Natal
Circulacion sanguinea
Praga - blog alfandegário
A favor de una cultura de paz.
Pacto Nacional pela Alfabetização na Idade Certa
Ecoexpez
Poluição da água
Saúde pública
Sesion7
Edital do concurso_pblico_n_002_de_2011
Jogo formas geometricas_iii
038 2011-poder executivo última versão ecaminhado em 28 de outubro
Sesion9
Ad

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