- :
<data>
<import type="com.example.path.Model"/>
<variable
name="obj"
type="com.example.viewmodel.ViewModel<Model>"
/>
</data>
NOTE: you can write " > " or " >" at the end of the "Model" should be in order
To avoid displaying errors, do not forget to add a line to say what type of object is used:
<import type="com.example.path.Model"/>
source
share