mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
99 lines
4.0 KiB
XML
99 lines
4.0 KiB
XML
<Page xmlns="http://www.nativescript.org/tns.xsd"
|
|
loaded="pageLoaded" xmlns:tsb="TelerikUI/side-bar">
|
|
<tsb:SideBar title="TelerikNEXT">
|
|
<tsb:SideBar.slideContent>
|
|
<StackLayout style="background-color: white">
|
|
<Border style="background-color: gray">
|
|
<Label>
|
|
<Label.formattedText>
|
|
<FormattedString fontSize="26" foregroundColor="#FFFFFF">
|
|
<FormattedString.spans>
|
|
<Span text="TelerikNEXT" />
|
|
</FormattedString.spans>
|
|
</FormattedString>
|
|
</Label.formattedText>
|
|
</Label>
|
|
</Border>
|
|
|
|
<Image src="~/images/logo.png" margin="20" />
|
|
|
|
<Button tap="{{ selectView }}" text="My agenda" horizontalAlignment="left" color="{{ selectedViewIndex === 0 ? '#e4ba4e' : 'white' }}"/>
|
|
<Button tap="{{ selectView }}" text="All sessions" horizontalAlignment="left" color="{{ selectedViewIndex === 1 ? '#e4ba4e' : 'white' }}" />
|
|
<Button tap="{{ selectView }}" text="About" horizontalAlignment="left" color="{{ selectedViewIndex === 2 ? '#e4ba4e' : 'white' }}"/>
|
|
|
|
</StackLayout>
|
|
</tsb:SideBar.slideContent>
|
|
|
|
<tsb:SideBar.mainContent>
|
|
<GridLayout>
|
|
|
|
<GridLayout rows="auto, auto, *" visibility="{{ selectedViewIndex !== 2 ? 'visible' : 'collapsed' }}">
|
|
|
|
<StackLayout style="background-image: url('~/images/background.jpg')">
|
|
<SegmentedBar selectedIndex="{{ selectedIndex }}" style="background-color: transparent;color: white;" selectedBackgroundColor="#fac950">
|
|
<SegmentedBar.items>
|
|
<SegmentedBarItem title="MAY 3" />
|
|
<SegmentedBarItem title="MAY 4" />
|
|
<SegmentedBarItem title="MAY 5" />
|
|
</SegmentedBar.items>
|
|
</SegmentedBar>
|
|
|
|
<Label cssClass="page-title" horizontalAlignment="center" margin="15">
|
|
<Label.formattedText>
|
|
<FormattedString>
|
|
<FormattedString.spans>
|
|
<Span text="{{ dayHeader }}" fontAttributes="Bold" />
|
|
</FormattedString.spans>
|
|
</FormattedString>
|
|
</Label.formattedText>
|
|
</Label>
|
|
</StackLayout>
|
|
|
|
<SearchBar text="{{ search }}" hint="Search" style="background-color: #fac950; color: #fac950;" textFieldBackgroundColor="white" row="1" />
|
|
|
|
<ListView items="{{ sessions }}" row="2" separatorColor="#fac950" itemTap="selectSession">
|
|
<ListView.itemTemplate>
|
|
<GridLayout columns="auto, *" cssClass="{{ canBeFavorited ? 'list-view-row' : 'break-row' }}">
|
|
|
|
<Image src="{{ favorite ? '~/images/fav.png' : '~/images/addfav.png' }}"
|
|
visibility="{{ canBeFavorited ? 'visible' : 'collapsed' }}"
|
|
tap="toggleFavorite" cssClass="favourite-image" />
|
|
|
|
<StackLayout col="1">
|
|
|
|
<Label cssClass="info-orange">
|
|
<Label.formattedText>
|
|
<FormattedString>
|
|
<FormattedString.spans>
|
|
<Span text="{{ range }}" fontAttributes="Bold" />
|
|
</FormattedString.spans>
|
|
</FormattedString>
|
|
</Label.formattedText>
|
|
</Label>
|
|
|
|
<Label text="{{ title }}" textWrap="true" cssClass="info-bigger"/>
|
|
|
|
<Label visibility="{{ room ? 'visible' : 'collapsed' }}" text="{{ room }}" cssClass="info-orange" />
|
|
|
|
</StackLayout>
|
|
|
|
</GridLayout>
|
|
</ListView.itemTemplate>
|
|
</ListView>
|
|
|
|
<ActivityIndicator busy="{{ isLoading }}" row="2" horizontalAlignment="center" verticalAlignment="center" />
|
|
|
|
</GridLayout>
|
|
|
|
<Border style="background-color: #053140;" visibility="{{ selectedViewIndex === 2 ? 'visible' : 'collapsed' }}">
|
|
<Image src="~/images/logo.png" margin="20" />
|
|
</Border>
|
|
|
|
</GridLayout>
|
|
</tsb:SideBar.mainContent>
|
|
</tsb:SideBar>
|
|
|
|
|
|
|
|
</Page>
|