#droidconPL2016

Опубликовано: 18 Март 2026
на канале: droidcon Krakow
136
2

droidcon Kraków is a part of global conference series and a network focusing on the best of Android. In 2016 we were happy to deliver the 3rd edition of this event.

Enjoy :)
---
Intro:
Model-View-Presenter (MVP) architecture is widely used in today’s Android apps to separate the view from the view logic and the model by introducing a presenter. Model-View-ViewModel (MVVM) is quite similar to MVP, with the view model acting as an enhanced presenter, using a data binder to keep the view model and the view in sync. By binding the view to view model properties, the data binder can handle view updates, without the need to manually set changed data back to the view (e.g. no more setText() or setVisibility() on a TextView). As with the presenter in MVP, the view model can easily be unit tested. This talk gives an introduction to the MVVM architecture and how it can be used on Android with the data binding library.