~/talk

Six Things ViewBinding Teaches Us

Talkat Android Worldwide July 2023 · 2023-07-25..07-26· [android]
links:none on file
slides:none on file

Explains how ViewBinding generates per-layout classes at build time (Android Studio 3.6, 2020) and inspects their fields and inflate/bind methods, shows that the underlying utility just calls findViewById, and demonstrates a common bug: keeping binding references in fragments causing memory leaks resolved by onDestroyView nulling the binding. Compares alternatives (ButterKnife, Kotlin synthetic, DataBinding), shows using property delegate libraries to remove boilerplate, and details interoperability with Compose via ComposeView and AndroidView.

AI-written summary · about

  1. 0:00Introduction
  2. 1:22Evolution of Interaction
  3. 7:31XML
  4. 11:34ViewBinding
  5. 16:07Memory Leak
  6. 23:21Evolution
  7. 24:54Inter interoperability
  8. 27:01Summary
  9. 27:41Question Answer
  10. 35:51Outro
~/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.