I mostly being stuck with android data binding BR issue. There is single activity.xml always but generated binding class showing error. Please let me know how to resolve this issue.
Note: The Data Binding Library generates a class named BR in the module package which contains the IDs of the resources used for data binding. In the example above, the library automatically generates the BR. item variable.
Layout Binding expressions Expressions in the XML layout files are assigned to a value of the attribute properties using the “ @{} " syntax. We just need to use the basic syntax @{} in an assignment expression.
View Binding is a way of connecting your code to specific views in your layout. This lets you access and modifies the view properties directly from your code. Data Binding, on the other hand, is a way of binding data to your views. This allows you to bind data directly to your views without writing extra code.
Custom binding class name resolved my problem
<data class="ContactItem"> … </data>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With