Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 113

AIR POWERed Apps
buzztouch Evangelist
Profile
Posts: 38
Reg: Oct 23, 2012
Southern Califo...
4,680
12/18/12 02:33 PM (13 years ago)

How to allow certain pages to rotate?

I like allowing users to be able to rotate the screen on my app, but I could make certain pages and menus look a lot more professional if I deny rotation on certain screens. I know how to allow/deny rotation, but not per page. Is there a way to allow some pages to only remain in portrait and others to go both portrait and landscape?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
12/18/12 03:06 PM (13 years ago)
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
12/18/12 03:27 PM (13 years ago)
Android or iOS? Android, you can put: setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); (or LANDSCAPE) in the onCreate of the classes you want to control. You'll need to hover over the ActivityInfo to add the import.
 
FromtheNE
Aspiring developer
Profile
Posts: 47
Reg: Sep 02, 2012
MA
3,220
like
12/18/12 07:11 PM (13 years ago)
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/08/14 09:47 AM (11 years ago)
Perhaps one of the Developers could look at adding Rotation to the Core properties, and/or some plugins like Menu Simple (as the background image really only looks right in Portrait), but not Map, because Map works better in Portrait for some and Landscape for others. We members shouldn't be editing the "m" files... as making a change for one context, could blow up a lot of others!..
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.