Android Data Binding

Nir Barzilay
Feb 25, 2017 · 1 min read

From my experience with databinding, it seems like they are trying to bring the React concept to android (you hold a ‘state’ object which is bound to the UI, and whenever it changes → the ui change). It still has a way to go: things are complicated with too many classes involved.

Even though it’s a very good design, and the react concept blends well with MVVM (and also MVP) architecture:

taken from http://cases.azoft.com/mvvm-android-data-binding/

And overall I would recommend start using DataBinding when you can.

As a start I would recommend the official docs as it’s very clear: https://developer.android.com/topic/libraries/data-binding/index.html

And an example with a RecyclerView: https://medium.com/google-developers/android-data-binding-recyclerview-db7c40d9f0e4#.wlcpeqz82

Good luck and happy coding :)

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade