-
18 Nov 2011 12:29 AM #1
how to set landscape view only for an application in Sencha Touch 2.0?
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....
-
18 Nov 2011 7:57 AM #2
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:
For AndroidManifest.xmlCode:<dict> `..... <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortraitUpsideDown</string> </array> .......... </dict>
Code:<activity ........ android:screenOrientation="portrait">
-
18 Nov 2011 2:26 PM #3
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.


Reply With Quote