~/talk

Advanced Data Binding

Talkat droidcon Italy 2019 · 2019-04-04..04-05· [android, testing]
slides:none on file

Shows actionable patterns and tradeoffs: concrete code for binding adapter old and new params and listener removal, using extension functions for static adapters, and when to use a dynamic DataBindingComponent with fragment versus static adapters. Walks through building two‑way binding (adapter + inverse listener + inverse adapter), migrating ObservableFields to LiveData, and a reproducible unit test approach — unit-test by inflating binding and executePendingBindings — plus using distinctUntilChanged to avoid full UI refresh and include reuse; Android Studio 3.5 fixes are demonstrated.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28Binding Adapters
  3. 2:58Multiple Parameters
  4. 4:27Simple Binding
  5. 4:42All and New
  6. 6:40Avoid Unnecessary Work
  7. 7:06Android Developers
  8. 8:35Dynamic Binding Adapter
  9. 9:30Fragment Data Binding
  10. 10:40Different Versions
  11. 11:00Browser Sample
  12. 11:12TwoWay Data Binding
  13. 15:25Android Data Binding
  14. 15:48Live Data
  15. 17:24Lifecycle Owner
  16. 18:16Can We Test
  17. 18:37Can We Unit Test
  18. 20:01Testing
  19. 21:42Special Use Case
  20. 24:13Alpha
  21. 24:31Includes
  22. 25:42Android Studio
  23. 27:40Documentation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.