I follow the instructions here to get two horizontally aligned items left and right centered. The problem is now I have item name text that is too long meaning it overlaps with the item price.
This is easily demonstrated by this diagram:
The actual code is:
<ListView for="product in products" @itemTap="onItemTap">
<v-template>
<GridLayout rows="auto" columns="*">
<Label row="0" horizontalAlignment="left" :text="product.title" />
<Label row="0" horizontalAlignment="right" :text="'$'+product.price" />
</GridLayout>
</v-template>
</ListView>
Is GridLayout
the way to go, or is there a better way of doing this?