What is BR in the initialization of Application object

#62 · closed · 1 comments

View on GitHub ↗

harica

in getting started, initializing the library in the applicaiton object following statement is used: viewDataBinding.setVariable(BR.vm, viewModel); What is BR in the above statement; I am new to Java. I am unable to fix BR when I try to do it in a new project. Any help will be appreciated...

Comments

manas-chaudhari

`BR` is a class generated automatically by the compiler. It contains field corresponding to every data binding variable name defined in the xml's `<data>` tag.