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 items="{{ sessions }}" row="3">
<ListView.itemTemplate> <ListView.itemTemplate>
<GridLayout columns="*, auto"> <GridLayout columns="auto, *">
<StackLayout>
<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>
<Label.formattedText> <Label.formattedText>
<FormattedString fontSize="18" foregroundColor="#a17201"> <FormattedString fontSize="18" foregroundColor="#a17201">
<FormattedString.spans> <FormattedString.spans>
<Span text="{{ 'Time: ' }}" /> <Span text="Time:" />
<Span text="{{ range }}" fontAttributes="Bold" /> <Span text="{{ range }}" fontAttributes="Bold" />
</FormattedString.spans> </FormattedString.spans>
</FormattedString> </FormattedString>
</Label.formattedText> </Label.formattedText>
</Label> </Label>
<Label text="{{ title }}" textWrap="true" cssClass="title" />
<Label text="{{ room ? 'Room: ' + room : '' }}"> <Label text="{{ room ? 'Room: ' + room : '' }}">
<Label.formattedText> <Label.formattedText>
<FormattedString fontSize="12" foregroundColor="#a17201"> <FormattedString fontSize="12" foregroundColor="#a17201">
@@ -72,13 +78,8 @@
</Label.formattedText> </Label.formattedText>
</Label> </Label>
<Label text="{{ title }}" textWrap="true" cssClass="title" />
</StackLayout> </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> </GridLayout>
</ListView.itemTemplate> </ListView.itemTemplate>
</ListView> </ListView>