- app: android mobile
- sdk: 3.2.0.GA
- os: osx mavericks
- studio Titanium Studio, build: 3.2.0.201312191547
- output: Samsung Galaxy Tab 3
Hi all, My app performs a basic view animation to slide buttons in from the side. It works fine on an iOS device and simulator. It fails to fire at all on an android device. I checked the api doc. The singletap event is supported for ios and android. I'm not getting any errors. I get audio to indicate a touch event on the device. Everything looks like it should be working. Not sure how to troubleshoot this issue.
controller
function slideOut(_obj) { _obj.animate({ duration : 500, left : 0 }); _obj.slideState = 'out'; } function slideIn(_obj) { _obj.animate({ duration : 500, left : -50 }); _obj.slideState = 'in'; } $.loginButton.addEventListener('singletap', function(e) { if (e.source.slideState === 'in' || e.source.slideState === undefined) { slideOut(e.source); e.source.slideState === "out"; } else { slideIn(e.source); e.source.slideState === "in"; } });view
<Alloy> <Window id="home" title="Home"> <View class="container" layout="vertical"> <Require src="header" type="view" /> <ImageView id="homeLogo" class="logo" /> <View id="navButtons" layout="vertical"> <Button class="buttons" id="loginButton"/> </View> </View> </Window> </Alloy>If anyone has a suggestion on how to proceed, I'd greatly appreciate your time and help. Regards.