Hi,
Is there any chance to open just a simple window with the typical slide effect without the use of any Tab- or NavigationGroup?
E.g.
One simple window with a button which takes me to a second (child) window.
thank you so much,
Jakob!
2 Answers
Accepted Answer
Hi Jakob
Short answer yes - answered in this very Q&A by Kossa.
Animate view transitions with a Slide like new windows
Hope this helps.
If anyone needs the code for this as well:
One simple window with a button which takes me to a second (child) window with a slide animation:
// Generated by CoffeeScript 1.3.3 var button, first, label2, second, slide_it_left; slide_it_left = Titanium.UI.createAnimation(); slide_it_left.left = 0; slide_it_left.duration = 300; first = Ti.UI.createWindow({ backgroundColor: "white", title: "My App" }); button = Ti.UI.createButton({ title: "go to second window" }); button.addEventListener("click", function(e) { second.open(slide_it_left); return first.close(); }); first.add(button); second = Ti.UI.createWindow({ backgroundColor: "white", title: "Child Window", left: 320 }); label2 = Ti.UI.createLabel({ text: "Here's the child" }); second.add(label2); first.open();
Your Answer
Think you can help? Login to answer this question!