Results 1 to 3 of 3

Thread: how to set landscape view only for an application in Sencha Touch 2.0?

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    30
    Vote Rating
    0
      0  

    Question how to set landscape view only for an application in Sencha Touch 2.0?

    Hi All,

    how can we set landscape view only for an application?
    I'm following sencha touch 2.0 pr2 with MVC pattern.

    Any help would be appreciated....

  2. #2
    Ext GWT Premium Member
    Join Date
    Apr 2009
    Location
    NYC
    Posts
    112
    Vote Rating
    1
      0  

    Default

    Well I'm assuming you're using something like PhoneGap to wrap the application.

    Then you do this:
    http://stackoverflow.com/questions/6...le-or-phonegap

    For iPhone's plist:
    Code:
    <dict>
    `.....
        <array>
            <string>UIInterfaceOrientationPortrait</string>
            <string>UIInterfaceOrientationPortraitUpsideDown</string>
        </array>
    ..........
    </dict>
    For AndroidManifest.xml
    Code:
    <activity   ........      android:screenOrientation="portrait">

  3. #3
    Sencha User rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159
    Vote Rating
    7
      0  

    Default

    And to just follow up on stan229's reply, if you want to do this in a browser, it is not possible.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •