Hi, i have listview in alloy .xml
code:
<ListView id="listView" defaultItemTemplate="template"> <Templates> <ItemTemplate id="template" name="template"> <Label id="testClick" bindId="testClick"/> </ItemTemplate> </Templates> </ListView> </Alloy> $.listView.addEventListener('itemclick', function(e){ Ti.API.debug('Log ListView', JSON.stringify(e));//not work on ios, work on android });Documentation :
On iOS, the itemclick event does not fire if you click on a control, such as a button or switch, even though the control might animate in response to the click. You need to add a click event to the child template of the control.
how add click event?