Skip to content

florina-muntenescu/DroidconMVVM

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages