Activity.Addview Orientation Changes

DCooper

Member
Licensed User
Longtime User
Ok. So I have two spinners that are Created in activity_create using Activity.Addview with the dimensions for the portrait layout. How do I change this when orientation is changed to landscape?

Thanks!
 

klaus

Expert
Licensed User
Longtime User
B4X:
Dim Orientation As String
If Activity.Width > Activity.Height Then
    Orientation = "Landscape"
Else
    Orientation = "Portrait"
End If
Beginner's Guide chapter 19.25 Detect screen orientation page 317 (link below)

Best regards.
 
Last edited:
Upvote 0

JuliamnHeim

Member
Licensed User
Longtime User
User Guide

I have downloaded the User Guide from the link you provide but mine only goes to page 123 and you mention pg 317. Is there another guide and if so where can I get it. Thanks for all your very good contributions.
 
Upvote 0

dmtulsa

Member
Licensed User
Longtime User
I can't find "Beginner's Guide chapter 19.25 Detect screen orientation page 317 (link below)"

The Beginner's Guide Last update : 2012.12.22 Edition 2.3 only has 278 pages and the highest chapter is 18

I had an older Beginner's guide with 253 pages.

Where is the new guide? its not at the link suggested. and I've searched the B4A site also.

Thanks
Doug
 
Upvote 0
Top