Descent Into Data Binding
summary
Step-by-step demo shows how to enable the new Android data binding library, add enable dataBinding = true, wrap a layout to generate a ListItemCrimeBinding class, and replace manual view lookups with generated fields. It inspects generated code to diagnose delayed updates and fixes them with executePendingBindings. It explores binding adapters, lambda click wiring, and moving logic into an observable ViewModel for testable properties and proper rebind notifications, and notes two‑way binding and include-composition as deeper options.
AI-written summary · about
chapters (13)
- 0:00Start
- 0:30Bill Phillips
- 5:38Enable Data Binding
- 11:25The Binding Mustache Operator
- 12:04Java Expressions
- 12:36Code Generation
- 14:17Step Zero Data Binding
- 18:45Setup Click Listeners
- 27:51A Null Coalescing Operator
- 32:57Binding Adapters
- 34:07Set Text Watcher Method
- 43:12Two-Way Data Binding
- 43:22Things To Remember








