8000 GitHub - zsiegel/rx-mvp-android: A basic project demonstrating some uses of RxJava with the Model-View-Presenter pattern on android
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zsiegel/rx-mvp-android

Repository files navigation

< 5900 div class="Box-sc-g0xbh4-0 js-snippet-clipboard-copy-unpositioned DirectoryRichtextContent-module__SharedMarkdownContent--YORdJ" data-hpc="true">

RxMVP Android

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.

Notes

  • 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() and finish() the presenter
      • NOTE the presenter holds the subscriber and unsubscribes in finish()
    • The last activity uses a fatter custom view with a presenter attached
      • This is the pattern I tend to move towards for modularity

If you have any questions or comments please open an issue

About

A basic project demonstrating some uses of RxJava with the Model-View-Presenter pattern on android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0