I wish to bind my object to spinner row layout by android databinding library. Post 1 and Post 2 not explained how I can use databinding and how to bind multiple fields (not only one string) of data object.
My data object looks like:
class Data{
public final String imageUri;
public final String title;
public final int totalCount;
}
Layout I wish looks as:
<!-- horisontal orientation -->
<LinearLayout>
<!-- Icon -->
<ImageView/>
<!-- Title -->
<TextView/>
<!-- TotalCount -->
<TextView/>
</LinearLayout>
and how it bind I don't know...