D DCooper Member Licensed User Longtime User Apr 25, 2012 #1 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!
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 Apr 25, 2012 #2 You need to test the orientation and have two AddView statements one for each orientation. Best regards. Upvote 0
You need to test the orientation and have two AddView statements one for each orientation. Best regards.
margret Well-Known Member Licensed User Longtime User Apr 25, 2012 #3 Most likely you will only need to change the Top & Left property of these views: viewname.Top = Your Int setting here viewname.Left = Your Int setting here Upvote 0
Most likely you will only need to change the Top & Left property of these views: viewname.Top = Your Int setting here viewname.Left = Your Int setting here
klaus Expert Licensed User Longtime User May 25, 2012 #5 Code: Copy 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: May 25, 2012 Upvote 0
Code: Copy 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.
J JuliamnHeim Member Licensed User Longtime User Dec 1, 2012 #6 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
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.
klaus Expert Licensed User Longtime User Dec 1, 2012 #7 There are two guides: - Beginner's Guide - User's Guide. Links below. Best regards. Upvote 0
D dmtulsa Member Licensed User Longtime User Jan 2, 2013 #8 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
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
klaus Expert Licensed User Longtime User Jan 2, 2013 #9 The chapter you are looking for is now 17.25 in Edition 2.3. You can have a look here to see the evolutions in the editions. The links below my signature point to the last versions of the guides. Best regards. Upvote 0
The chapter you are looking for is now 17.25 in Edition 2.3. You can have a look here to see the evolutions in the editions. The links below my signature point to the last versions of the guides. Best regards.
D dmtulsa Member Licensed User Longtime User Jan 3, 2013 #10 Ok, thank you. I though I had the newest guide and I've read that part. I just wanted to make sure. Upvote 0