Skip to content

Instantly share code, notes, and snippets.

@rajubd49
Created April 16, 2015 08:12
Show Gist options
  • Save rajubd49/c4d62b5d3df963764999 to your computer and use it in GitHub Desktop.
Save rajubd49/c4d62b5d3df963764999 to your computer and use it in GitHub Desktop.
Android Navigating Windows - Appcelerator Titanium
var mainWin = Ti.UI.createWindow({
backgroundColor: "blue"
});
var btn = Ti.UI.createButton({
title: "Click",
width: 200,
height: 50,
backgroundColor: "#fff",
color: "#000"
});
btn.addEventListener("click", function() {
var win = Ti.UI.createWindow({
backgroundColor: "red",
modal: true,
});
win.open({
activityEnterAnimation: Ti.Android.R.anim.slide_in_left,
});
});
mainWin.add(btn);
mainWin.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment