Android Data Binding Library

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Remarks

Setup

Before using data binding, you must enable the plugin in your build.gradle.

android {
    ....
    dataBinding {
        enabled = true
    }
}

Note: Data binding was added to the Android Gradle plugin in version 1.5.0

Binding class names

The data binding plugin generates a binding class name by converting your layout's file name to Pascal case and adding "Binding" to the end. Thus item_detail_activity.xml will generate a class named ItemDetailActivityBinding.

Resources



Got any Android Question?