Advertisement

Data Binding on Android to implement the real MVVM

Data Binding on Android to implement the real MVVM Data Binding is really easy and can save you from a lot of boilerplate when connecting your data to the UI, and also to update it when something changes.

Here I show you an example from scratch, and how to apply it to the MVVM presentation pattern.

Link to sample on Github:

If you want to learn about MVVM, check this:

You're probably already tired of using findViewById, or maybe Kotlin Android Extensions worked for you for some time, but now you're finding some edgy cases where you are missing some things.

Thanks to Data Binding, you'll be able to do a strict match between the views in your XML and the properties in your binding object so that it doesn't happen anymore.

Besides, if you're using MVVM pattern, thanks to the integration with LiveData, listening to model changes will be a breeze. Let's get ready in seconds!

And if you want to learn Kotlin from scratch, join my free training:

data binding,android,androiddev,kotlin,android developer,coders,software engineering,android programming,android studio,mobile developers,mvvm,databinding,architecture components,bindingadapter android,google,android q,google io,

Post a Comment

0 Comments