~/talk

Level up with Data Binding

Talkat Android Dev Summit 2018 · 2018-11-07..11-08· [android, frontend-architecture]
slides:none on file

Enable data binding by setting dataBinding enabled=true in Gradle and wrap layouts; Android Studio can convert to data binding layout automatically. Layouts declare variables and use expressions to bind ViewModel properties; use @BindingAdapter methods (can be module‑wide) to plug in libraries like BindingAdapter with Glide, and the compiler can pass the old value into adapters for comparisons. LiveData binds automatically when a lifecycleOwner is set, and two‑way binding uses @= to let UI update immutable LiveData successfully.

AI-written summary · about

  1. 0:00Intro
  2. 0:26What is Data Binding
  3. 0:45Enable Data Binding
  4. 1:25Data Binding Expressions
  5. 2:08Data Binding Access
  6. 2:30Binding Adapters
  7. 2:56Adapters 101
  8. 3:33Advanced Binding
  9. 4:00Observer
  10. 4:28Twoway
~/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.