View Binding und Data Binding sind Android-Features zum Verbinden von Code mit Views in XML-Layouts sicherer und komfortabler als das alte findViewById. View Binding bietet typ-sichere View-Referenzen; Data Binding bindet zusätzlich Daten direkt an Layouts.
Das 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.
