Created
February 8, 2012 23:09
-
-
Save nebiros/1775271 to your computer and use it in GitHub Desktop.
click on tab workaround for titanium mobile
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 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