Titanium SDK 3.1.1 / Alloy 1.2 / iOS and Android / OS X Lion 10.7.5
Anybody can have solution about Alloy listview multiple event? I am trying to do click event on button in ListView separately on Android. I-phone works fine but Android didn't. When I click button, the event fires "itemclick" and "buttonClick" events at the same time. How can I manage click multiple event on Android? (I've tried on Android device and simulator)
<ListView id="listView"> <Templates> <ItemTemplate name="contentTemplate"> <Button bindId="buttonCheck" class="buttonCheck" onClick="checked" /> <Label bindId="contentLabel" id="contentLabel"/> </ItemTemplate> </Templates> <ListSection id="dataSection"></ListSection> </ListView>
$.listView.addEventListener('itemclick', function(e){ //open window code here.. }); function checked(e){ //Should change button color and should not open next window });