Skip to content

Instantly share code, notes, and snippets.

@nebiros
Created February 8, 2012 23:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nebiros/1775271 to your computer and use it in GitHub Desktop.
click on tab workaround for titanium mobile
var newPetitionListener = function (e) {
newPetition(win, params);
}
, cameraView = Ti.UI.createView({
width: 95,
height: 50,
bottom: 0
});
cameraView.addEventListener("click", newPetitionListener);
win.addEventListener("focus", function (e) {
win.containingTab.tabGroup.add(cameraView);
});
win.addEventListener("blur", function (e) {
win.containingTab.tabGroup.remove(cameraView);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment