Android binding data has 2 variable

Viewed 36

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>
1 Answers

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.

Related