Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Splashscreen in landscape mode

I want my app to start in landscape mode. I don't want the splashscreen to be in portrait mode either. I want the splashscreen to start up in landscape mode.

Anyone?

— asked November 4th 2010 by Andreas Kviby
  • landscape
  • splashscreen
0 Comments

2 Answers

  • Accepted Answer

    This is how i did it in my app:

    Set your orientation mode to landscape in your app.js :

    var win = Titanium.UI.createWindow({  
        title:'Home',
        tabBarHidden:true
    });
    
    win.orientationModes = [
        Titanium.UI.LANDSCAPE_LEFT
    ]; 
    
    Titanium.UI.orientation = Titanium.UI.LANDSCAPE_LEFT;
    

    Create your splashscreen image in a landscape mode and voila

    — answered November 4th 2010 by Glenn Tillemans
    permalink
    0 Comments
  • This line I forget… thanks a lot!
    Titanium.UI.orientation = Titanium.UI.LANDSCAPE_LEFT;

    — answered November 4th 2010 by Andreas Kviby
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.