Landscape for complete App

You must Login before you can answer or comment on any questions.

Hey Guys,

I want to display all Windows in my App in Landscape mode. Currently I' use on every new Window an eventlistener for focus.

win1.addEventListener('focus', function()
{
    win1.orientationModes = [
        Titanium.UI.LANDSCAPE_LEFT,
        Titanium.UI.LANDSCAPE_RIGHT,
    ]; 
    Titanium.UI.orientation = Titanium.UI.LANDSCAPE_RIGHT;
});
The Problem with that code is, if I switch between to windows it will display for a short moment (under 1 sec) the portrait mode and switch then to the landscape mode.

Thanks for your help, Dominik

1 Answer

Your Answer

Think you can help? Login to answer this question!