Portrait but one layout in landscape...

trebun

Member
Licensed User
Longtime User
Hi,

is it possible to set the orientation fix to portait (Project -> Orientations Supported -> Portrait) but a new layout fix to landscape?

Regards,
trebun
 

ericvanderhoeven

Member
Licensed User
Longtime User
force screen orientation WITHOUT THE FUZZ

The project orientation property affect all activities.
You can specifically set the orientation of an activity with this manifest editor code:
B4X:
SetActivityAttribute(Activity2, "android:screenOrientation", "landscape")

Erel,

this has been by far the most impressive, practical and simple tip I've read so far. It completely solves the need to using p.setscreenorientation() with the collateral damage of android killing the activity!!!!

What perfect control over any desired prescribed screen orientation this is...

What joy!

:sign0142:
 
Upvote 0
Top