var Btn = Titanium.UI.createButton({ title:'I am button', backgroundColor:'red' }); Btn.addEventListener('click',function(e){ var counter=0; if(counter%2==0) { Btn.backgroundColor='black' } else { Btn.backgroundColor='red' } counter++; });Thanks
Source: http://developer.appcelerator.com/question/154677/facebook-button-color
Who Is Winning The Election 2012 Election Coverage 2012 Linda McMahon Voting Results 2012 pbs ron paul Cnn Electoral Map
No comments:
Post a Comment