Why Use Data Binding Every developer wants clean and understandable code, but creating it is easier said than done. People rush, releases come one after another, clients want results and before you know it, your code is a mess. Knowing this, the Android team decided to make things easier by standardizing development. To that end, they launched the Jetpack libraries, which include the Data Binding Library. This library offers several advantages: Less code: By keeping code in activities and fragments small, it helps you write cleaner and more readable code. Fewer errors: The binding is checked at compile time. Faster apps: Since the binding isn’t done in onCreate, your app runs faster. Safer connection between views and code: Because it doesn’t bind at runtime, it’s safer to get the UI components than findViewById(). Safer connection between views and action: Data binding is safer than relying on onClick(), which ca...