View Binding and Data Binding are Android features for connecting code to views in XML layouts more safely and conveniently than the old findViewById. View Binding provides type-safe view references; Data Binding additionally binds data directly to layouts.
The problem: findViewById
The old way: findViewById to get view references:
val button = findViewById<Button>(R.id.myButton)
✗ verbose; NOT type-safe (cast errors); NOT null-safe (wrong id → null → crash at runtime)
→ View/Data Binding solve these.
