This repository has been archived by the owner on Aug 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
ride.xml
51 lines (40 loc) · 1.54 KB
/
ride.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<Alloy>
<Model src="ride" instance="true" id="ride" />
<Window id="win" title="{$.ride.fromTimeFormatted}">
<ActionBar platform="android" displayHomeAsUp="true" onHomeIconItemSelected="close" />
<Menu platform="android">
<MenuItem title="Delete" onClick="confirmToDeleteRide" />
</Menu>
<RightNavButton platform="ios">
<Button systemButton="TRASH" onClick="confirmToDeleteRide" />
</RightNavButton>
<ScrollView>
<Require src="partials/map" rideId="{$.ride.id}" class="map" />
<View platform="android" class="sectionSeparator" />
<View class="details">
<Label class="label" textid="From" />
<Label class="value" text="{$.ride.fromTimeFormatted}" />
<Label class="label" textid="To" />
<Label class="value" text="{$.ride.toTimeFormatted}" />
<Label class="label" textid="Duration" />
<Label class="value" text="{$.ride.durationFormatted}" />
<Label class="label" textid="Distance" />
<Label class="value" text="{$.ride.distanceFormatted}" />
<Label class="label" textid="AvarageMovingSpeed" />
<Label class="value" text="{$.ride.avgSpeedFormatted}" />
</View>
<ListView class="views" onItemclick="openView">
<HeaderView platform="android">
<View class="sectionSeparator" />
</HeaderView>
<Templates>
<Require src="partials/listTemplate" />
</Templates>
<ListSection>
<ListItem class="view" itemId="data" title:text="Data" />
<ListItem class="view" itemId="map" title:text="Map" />
</ListSection>
</ListView>
</ScrollView>
</Window>
</Alloy>