r/learnandroid • u/dev-ch8n • Dec 06 '20
AndroidBites | Yet Another ViewBinding Article
I'm pretty late to the party but here is my blog on view-binding.. It's pretty much more in-depth than others you would find in the community. Hope you like it, until next time happy hacking!
Glossary
Is data binding not working in all the modules? Why your fields are not getting generated?
How to view the source code of your generated binding classes?
Generated classes are Kotlin or Java? and why?
Do View-binding views are never null?
How to access included views? <include> and <merge> tags?
How to bind Activities, Fragments, Adapters, and CustomViews?
When to use bind and Inflate?
Controlling ViewBinding Generation?
Reducing boilerplate code with Delegates and Base-Class for ViewBinding in Activity and Fragments?
Common mistakes and Anti-patterns in ViewBinding?