Data Binding in a Kotlin World
summary
Data binding generates Java glue from XML so Kotlin code drops findViewById and manual setters, using KAPT and the dataBinding flag; a demo dog app shows binding a Dog model, generated binding.setDog, and two-way binding on EditText that updates the model automatically. The talk builds Kotlin delegates (a lazy delegate for binding, and a bindable property delegate) and demonstrates custom BindingAdapters, recycler‑view shared viewmodels, TransitionManager animations, and practical notes on Dagger, RxJava and LiveData integration.
AI-written summary · about
chapters (12)
- 0:00Introduction to Data Binding
- 4:03Setting Up Data Binding
- 7:13Basic Data Binding Example
- 10:45Kotlin Delegates for Binding
- 14:15Custom Binding Adapters
- 16:41Avoiding Logic in XML
- 18:48Observable View Models
- 23:25Event Listeners in Data Binding
- 25:53When to Use Data Binding
- 28:47Animations and Transitions
- 30:54Data Binding with Other Frameworks
- 33:42Common Pitfalls and Errors








