main page improved

This commit is contained in:
Vladimir Enchev
2015-03-10 10:32:41 +02:00
parent a227dff2d7
commit fa95895dec

View File

@ -47,20 +47,26 @@
<ListView items="{{ sessions }}" row="3">
<ListView.itemTemplate>
<GridLayout columns="*, auto">
<StackLayout>
<GridLayout columns="auto, *">
<Image url="{{ favorite ? '~/app/images/fav.png' : '~/app/images/addfav.png' }}" style.visibility="{{ canBeFavorited ? 'visible' : 'collapsed' }}"
tap="toggleFavorite" width="32" height="32" vertical-align="center" margin="20" />
<StackLayout col="1">
<Label>
<Label.formattedText>
<FormattedString fontSize="18" foregroundColor="#a17201">
<FormattedString.spans>
<Span text="{{ 'Time: ' }}" />
<Span text="Time:" />
<Span text="{{ range }}" fontAttributes="Bold" />
</FormattedString.spans>
</FormattedString>
</Label.formattedText>
</Label>
<Label text="{{ title }}" textWrap="true" cssClass="title" />
<Label text="{{ room ? 'Room: ' + room : '' }}">
<Label.formattedText>
<FormattedString fontSize="12" foregroundColor="#a17201">
@ -72,13 +78,8 @@
</Label.formattedText>
</Label>
<Label text="{{ title }}" textWrap="true" cssClass="title" />
</StackLayout>
<Image url="{{ favorite ? '~/app/images/fav.png' : '~/app/images/addfav.png' }}" style.visibility="{{ canBeFavorited ? 'visible' : 'collapsed' }}"
tap="toggleFavorite" width="32" height="32" col="1" vertical-align="center"/>
</GridLayout>
</ListView.itemTemplate>
</ListView>