How to use DataBinding from #android #jetpack in an existing project step by step.
Consider Subscribing 🤩
https://www.youtube.com/channel/UClbv-gIWvuncgfd5umYL3mg?sub_confirmation=1
Chapters:
0:00 Intro
0:16 What is DataBinding
0:37 Enabling DataBinding
0:55 Converting XML Layout to DataBinding Layout
1:41 Adding XML Variables
2:08 Bind ViewModel to XML Layout Variable
2:45 Calling ViewModel methods from layout file
3:54 Converting second XML Layout to DataBinding Layout
4:25 Setting viewLifecycleOwner for LiveData VM properties
5:18 Passing ViewModel data to Layout string resources
7:12 Conditional DataBinding Expressions
11:35 Adding onClick Event Listener with DataBinding
13:05 Referencing Other Views in Layout
15:28 A Word on Best Practices
Github Repository:
https://github.com/danpgomez/checkout-example/tree/data-binding-tutorial
"An Argument Agains DataBinding" - Tim Mutton
https://medium.com/@hellotimmutton/an-argument-against-data-binding-13e2aaf7a9b1
Google I/O 2015 DataBinding Presentation:
https://youtu.be/ndBdf1_oOGA?t=847
Official Google Documentation on DataBinding:
https://developer.android.com/topic/libraries/data-binding
-----
The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.