-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathmaster.xml
33 lines (25 loc) · 1.06 KB
/
master.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
<Alloy>
<!-- Create global instance of collection we'll bind -->
<Collection src="feed" />
<Window title="RSS Reader">
<!-- Android: Add MenuItem for refresh -->
<Menu platform="android">
<MenuItem icon="images/ic_action_action_autorenew.png" onClick="refresh" showAsAction="Ti.Android.SHOW_AS_ACTION_ALWAYS" />
</Menu>
<CommandBar platform="windows" ns="Ti.UI.Windows" id="commandBar" />
<ListView platform="ios,android,windows" defaultItemTemplate="template" onItemclick="select">
<!-- iOS RefreshControl -->
<RefreshControl platform="ios" id="refreshControl" onRefreshstart="refresh" />
<Templates>
<ItemTemplate name="template" class="item">
<Label bindId="title" class="text title" />
<Label bindId="subtitle" class="text subtitle" />
</ItemTemplate>
</Templates>
<!-- Alloy data-binding -->
<ListSection dataCollection="feed" dataTransform="transform">
<ListItem itemId="{guid}" image:image="{image}" title:text="{title}" subtitle:text="{pubDate}" />
</ListSection>
</ListView>
</Window>
</Alloy>