What is BR in the initialization of Application object
harica opened this issue · comments
harica commented
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...
Manas Chaudhari commented
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.