alloy
Version:
TiDev Titanium MVC Framework
30 lines (29 loc) • 885 B
text/xml
<Alloy>
<Tab title="basic">
<Window title="basic">
<!--
"itemclick" will handle all click events on any ListItems
in the ListView. You can use the "sectionIndex" and
"itemIndex" of the event object to determine exactly
which ListItem is clicked. This allows you to define a
single event handler to process all ListItem clicks.
Bear in mind that event handlers can NOT be added
directly to ListItems.
-->
<ListView id="list" onItemclick="onItemClick">
<ListSection>
<ListItem title="row 1"/>
<ListItem title="row 2"/>
<ListItem title="row 3"/>
<ListItem title="row 4"/>
<ListItem title="row 5"/>
<ListItem title="row 6"/>
<ListItem title="row 7"/>
<ListItem title="row 8"/>
<ListItem title="row 9"/>
<ListItem title="row 10"/>
</ListSection>
</ListView>
</Window>
</Tab>
</Alloy>