Hello to everyone, I'm really new to Titanium, and I'm trying to practice, so sorry if I ask trivial questions. I've set a simple Window animation for android, and on the simulator (Genymotion, 4.1.1 API 16) it works, but if I test it on a physical device (4.1.2) I can't see the animation, I just view the new Window opening up without any transition. Any suggestion?
index.xml:
<Alloy> <Window class="container" id="indexWin" navBarHidden="true"> <Label id="title" top="50">INDEX</Label> <Label id="labelNext" onClick="goNext">NEXT</Label> <Label id="labelPrev" onClick="goPrev">PREV</Label> </Window> </Alloy>
index.js:
$.indexWin.open(); function goNext(e) { var showcat = Alloy.createController("showcat", []).getView(); showcat.left = 600; showcat.open(Alloy.Globals.defaultAnimation); } function goPrev(e) { // }
alloy.js:
Alloy.Globals.defaultAnimation = { activityEnterAnimation: Ti.Android.R.anim.slide_in_left, activityExitAnimation: Ti.Android.R.anim.slide_out_right };