mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
main page improved
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user