manas-chaudhari / android-mvvm

MVVM on Android using RxJava and Data Binding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is BR in the initialization of Application object

harica opened this issue · comments

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...

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.