This is a sample project to demonstrate various ways to use the Model-View-Presenter pattern on Android.
It has a focus on how to integrate cleanly in difference ways with RxJava and its subscriptions.
-
I deviate slightly from the strict MVP pattern by letting the views format the model data for themselves. This allows the presenters to be re-used across various views.
-
There are 3 activities that use the same presenter but in different ways
- One activity uses a standard base activity to
start()
andfinish()
the presenter- NOTE the presenter holds the subscriber and
unsubscribes
infinish()
- NOTE the presenter holds the subscriber and
- The last activity uses a
fatter
custom view with a presenter attached- This is the pattern I tend to move towards for modularity
- One activity uses a standard base activity to