Android Question Portrait or Landscape?

HansDieter

Member
Licensed User
Longtime User
A part of me app's user interface is drawn at run time.
How can i determine whether the device is i portrait or landscape view?
 

Quandalle

Member
Licensed User
B4X:
  If GetDeviceLayoutValues.Width > GetDeviceLayoutValues.Height Then
     Orientation = "Landscape"
  Else
      Orientation = "Portrait"
  End If
 
Upvote 0
Top