Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

ListView multiple eventListener on Android

$
0
0

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 
});

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>