• Stars
    star
    479
  • Rank 91,752 (Top 2 %)
  • Language
    Java
  • Created over 8 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

"Hello, World!" example of the Model-View-ViewModel pattern

Model-View-ViewModel "Hello, World!"

This is a "Hello, World!" project done for a Droidcon Zagreb 2016 talk on MVVM & RxJava – the perfect mix.

The project contains an exemplification of the Model-View-ViewModel pattern used together with RxJava. A "Hello, World!" greeting will be displayed based on the selected language.

The DataModel provides supported languages and also retrieval of the greeting based on the language. The ViewModel exposes greetings and supported languages as stream of events through RxJava Observables. The ViewModel also allows setting the selected language. The View is an Activity that contains a Spinner with the supported languages and a text view that displays a greeting, based on the selected language.

Model-View-ViewModel