Created
April 16, 2015 08:12
-
-
Save rajubd49/c4d62b5d3df963764999 to your computer and use it in GitHub Desktop.
Android Navigating Windows - Appcelerator Titanium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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