Data Binding — Write Apps Faster (Android Dev Summit 2015)



Android Data Binding, introduced at Google I/O as a preview, allows developers to write applications faster, easier, with fewer bugs, and with no performance impact. By adding a binding expression to your layout XML, you can tie the data model back end to your UI. George Mount & Yigit Boyar discuss how this is done and some of the magic that is happening behind the scenes to make this possible.

Watch more talks from Android Dev Summit 2015 here:

Subscribe to the…

21 Comments

  1. how to remove data binding? databinding{ enable = false } not working every time I create a file it is generating a ****view_binding file related to the java file. I tried deleting but if the run the app again it will generate

  2. Allowing math and other stuff in XML is a way to bad code with buisness logic in XML. In WPF's XAML it was very right decision to allow only pure binding expressions without any calculations.

  3. At first I didn't leave a comment, because it's possible the presenters are actually reading these, and I'm very sympathetic to others, but it must be said that objectively: this video was painful to watch. I stopped midway and resolved that if I ever cared enough, I would just resort to the docs on data-binding. Don't give up, though, George. Public speaking is a skill (and notably it's not correlated to how objectively interesting or intelligent someone is. Some of the smartest people suck at presenting and some of the dumbest people excel at presenting those same smart people's ideas, so it's nothing to be offended by.) Practice makes perfect; really. Cheers.

  4. He says at 19:38 that "Dont try to do business logic through XML" but just after that he shows very simple code where the drawable changes based on user's age. Although it is really simple, I think it is a business logic. I am confused.

  5. Did anyone try to use Observable interface to notify UI about the updates? PropertyChangeRegistry doesn't have notifyPropertyChanged() method.

  6. is this binding restricted to new version of Android devices ? any backward compatibility ? and thanks for this video, it helps me understand more about binding 😉

Leave a Reply

Your email address will not be published. Required fields are marked *