Android Question No Rotation a view

netsistemas

Active Member
Licensed User
Longtime User
#SupportedOrientations is defined for all proyect, but...

How do no ratation a activity/layout?
 

aidymp

Well-Known Member
Licensed User
Longtime User
#SupportedOrientations is defined for all proyect, but...

How do no ratation a activity/layout?

If i understand you right, to NOT allow rotation just put
B4X:
    #SupportedOrientations: Landscape
and it wll stay in landscape mode!
 
Upvote 0

netsistemas

Active Member
Licensed User
Longtime User
Thanks. Perfect

In Activity_create
Dim P As Phone
p.SetScreenOrientation(0)


Orientation - -1 for unspecified, 0 for landscape and 1 for portrait.
 
Upvote 0
Top