Professional Documents
Culture Documents
MVVM and Rxjava - The Perfect Mix: Droidcon Zagreb 2016
MVVM and Rxjava - The Perfect Mix: Droidcon Zagreb 2016
RxJava –
the perfect
mix
Droidcon Zagreb 2016
Florina Muntenescu
1
What and who upday is
2
When did we
decide to go
the RxJava &
MVVM way?
3
When did we decide to go the RxJava & MVVM way?
4
When did we decide to go the RxJava & MVVM way?
5
When did we decide to go the RxJava & MVVM way?
6
Crash course
in RxJava
7
Crash course in RxJava
Sum it up!
A1 0 1
A2 0 2
C1 0 1 3
8
What is MVVM
and how do
you apply it?
9
What is MVVM and how do you apply it?
Model-View-Presenter
IView IPresenter
1…1
View Presenter Model
10
What is MVVM and how do you apply it?
Model-View-ViewModel
1…*
View ViewModel DataModel
11
What is MVVM and how do you apply it?
12
What is MVVM and how do you apply it?
Model-View-ViewModel
1…*
View ViewModel DataModel
13
What is MVVM and how do you apply it?
Testing
14
What is MVVM and how do you apply it?
Model-View-ViewModel
1…*
View ViewModel
1…*
View
View ViewModel DataModel
1…*
View ViewModel
15
What is MVVM and how do you apply it?
Function Function
Spreadsheet 1…* Spreadsheet
View ViewModel
View ViewModel
Observable<String>
getFunctionText()
16
What is MVVM and how do you apply it?
implements
IFunctionView
Function Function
Spreadsheet
View 1…1 Spreadsheet
Presenter
View
implements Presenter
IFunctionView
void
textUpdated(String)
17
18
We made
mistakes but
we recovered!
19
We made mistakes but we recovered!
20
We made mistakes but we recovered!
View
21
We made mistakes but we recovered!
ViewModel
22
We made mistakes but we recovered!
View
23
We made mistakes but we recovered!
24
We made mistakes but we recovered!
25
We made mistakes but we recovered!
26
27
RxJava – the
good and the
bad
28
RxJava – the good and the bad
29
RxJava – the good and the bad
Stream
composability FTW!
30
RxJava – the good and the bad
31
RxJava – the good and the bad
toList()
32
RxJava – the good and the bad
33
34
Exclusive to Samsung
35