Android Question Why is my layout not display properly on my device?

davepamn

Active Member
Licensed User
Longtime User
800x1200
B4X:
lblPrinter.Top=0dip
lblPrinter.Left=0
lblPrinter.Height=10%y
lblPrinter.TextSize=20
lblPrinter.Width=100%x

cmdLoadData.Top=lblPrinter.Bottom
cmdLoadData.Width=100%x
cmdLoadData.Left=0dip
cmdLoadData.TextSize=20
cmdLoadData.Height=10%y

In designer the layout looks correct, but on the device the control heights are being ignored. Is there a layout type that is required?

Version: 5.02

Device: Samsung Galaxy

Layout works correctly in version: 4.0

Designer has variant 600x960 and 960x600. How can I get this variant in 5.0
 
Last edited:

davepamn

Active Member
Licensed User
Longtime User
I found the problem. I needed to create two variants 960x600 and 600x960 and the code worked.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…