Six Things ViewBinding Teaches Us
summary
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
chapters (10)
- 0:00Introduction
- 1:22Evolution of Interaction
- 7:31XML
- 11:34ViewBinding
- 16:07Memory Leak
- 23:21Evolution
- 24:54Inter interoperability
- 27:01Summary
- 27:41Question Answer
- 35:51Outro








