Is it okay if my databinding xml has 2 variable
<data>
<variable
name="mymodel"
type="com.model.booking.Booking" />
<variable
name="mymodel"
type="com.model.Remarks.Result" />
</data>
Is it okay if my databinding xml has 2 variable
<data>
<variable
name="mymodel"
type="com.model.booking.Booking" />
<variable
name="mymodel"
type="com.model.Remarks.Result" />
</data>
Yes, it is okay to have more than one variable in data binding XML but. The class can be the same but the variable name must be different.