In this tutorial, I will explain how to use Android View Binding in activities and fragments, and how it's different from Data Binding, findViewById, Kotlin's synthetic properties, and Butterknife.
Example code:
https://gist.github.com/codinginflow/19ea5b9794cc4217cd0afb94edab0a19
Data Binding tutorial (members-only):
I canceled Youtube memberships and the Data Binding tutorial for now! Look out for my premium courses instead!
Timestamps:
00:00 Comparison of Alternatives
05:22 Setup
08:00 Activity Usage
11:34 Fragment Usage
16:40 Include Layouts
18:15 Alternative Layout Files
19:59 Excluding a layout
____________________
💻 Find the BEST programming tutorials on TutHub:
https://tuthub.io
⭐ Get my MVVM Caching Course now:
https://codinginflow.com/caching
❗ Subscribe to the channel:
https://www.youtube.com/c/codinginflo...
📨 Subscribe to the Coding in Flow newsletter:
https://codinginflow.com/newsletter
❓ Join our free developer community:
https://discord.gg/TSnMvmc
📣 Follow Coding in Flow on other sites:
Facebook: https://www.facebook.com/codinginflow
Instagram: https://www.instagram.com/codinginflow
TikTok: https://www.tiktok.com/@codinginflow
Twitter: https://twitter.com/codinginflow
Github: https://github.com/codinginflow
💰 Business requests, sponsoring, etc.: [email protected]