Webview Portrait / Landscape orientation on Android
I create a custom AndroidManifest to avoid the landscape orientation and works fine.
How could I make that only the webviews can change it´s orientation?
2 Answers
-
Francisco
You would have to set the orientationModes property of Titanium.UI.Window to a specific orientation for standard windows, and then don't specify any orientation mode for webviews.
For example
var win = Titanium.UI.currentWindow; win.orientationModes = [Titanium.UI.LANDSCAPE_LEFT];
I think you would have to remove your modification of the AndroidManifest though.
-
Thank you for you answer Hal but orientationModes don´t prevent a orientation change, at least on the emulator.