News

As such, activity_main.xml will result in a class called ActivityMainBinding. To associate this auto generated binding class in your code, you invoke DataBindingUtil’s setContentView ...
Since the target xml file is named activity_main.xml, the build system will generate a class called ActivityMainBinding, which you can reference in your app like any other Java class.