keep layout in one position How?

b4AMarkO

Member
Licensed User
Longtime User
I've looked but haven't found it yet so thought I would ask....

The app I am working on I do not want it to change if the user moves the phone to horizontal position

I want it to just stay in the vertical if that makes sense

But how?
 

yttrium

Active Member
Licensed User
Longtime User
I've looked but haven't found it yet so thought I would ask....

The app I am working on I do not want it to change if the user moves the phone to horizontal position

I want it to just stay in the vertical if that makes sense

But how?

Layouts by default only support one orientation.

This may be set in the Project Attributes, at the header of the Main class:

B4X:
#Region  Project Attributes 
   #ApplicationLabel: MyApp
   #VersionCode: 1
   #VersionName: 1.0
   #SupportedOrientations: portrait
   #CanInstallToExternalStorage: True
#End Region
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
On your project, top of the source code you will find a "Project attributes" region, open it and change this line:
From:
B4X:
#SupportedOrientations: unspecified
To:
B4X:
#SupportedOrientations: portrait
Read more HERE
 
Upvote 0

b4AMarkO

Member
Licensed User
Longtime User
On your project, top of the source code you will find a "Project attributes" region, open it and change this line:
From:
B4X:
#SupportedOrientations: unspecified
To:
B4X:
#SupportedOrientations: portrait
Read more HERE

Thank you guys this is what I needed ... works great
 
Upvote 0
Top