Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
xoorath
Posts: 13
Registered: ‎04-11-2012
My Device: Blackberry Playbook, Blackberry 10 Dev Alpha
My Carrier: None
Accepted Solution

BB10 Dev Alpha landscape orientation

[ Edited ]

Hey there,

 

I'm looking to have a landscape application for both playbook and BB10DA (BB10 Dev Alpha). On playbook it will default to landscape and everything is peachy. However when I run the same app on BB10DA the phone locks to a portrait orientation making the app behave strangely. The keyboard comes up portrait and the bezel gestures do too. I have my rendering and input adjusted thanks to Cocos2d-x but the OS needs to recognize that I want the phone to be in landscape only for this application.

 

Is there a way to do this currently?

 

- Xoorath

Please use plain text.
Contributor
fiferboy
Posts: 13
Registered: ‎02-17-2012
My Device: Torch 9600, Playbook
My Carrier: Rogers

Re: BB10 Dev Alpha landscape orientation

In your bar-descriptor.xml file you can add the following element inside <initialWindow>

 

<aspectRatio>landscape</aspectRatio>

 Which I believe should work.

Please use plain text.
Contributor
xoorath
Posts: 13
Registered: ‎04-11-2012
My Device: Blackberry Playbook, Blackberry 10 Dev Alpha
My Carrier: None

Re: BB10 Dev Alpha landscape orientation

Fantastic sir. Thank you.

Please use plain text.