I'm trying to fully understand the AutoScaling, method.
I built my layout with Designer and everything seems to scale except TextSize of labels.
See attached image.
I'm using AutoScaleAll.
The two screenshots represent a 600x960 and a 320x480 screen, both at 160dpi (scale = 1)
Designer Script code:
Also note that the white circle at the bottom did not scale.
Thoughts?
-Sterling
I built my layout with Designer and everything seems to scale except TextSize of labels.
See attached image.
I'm using AutoScaleAll.
The two screenshots represent a 600x960 and a 320x480 screen, both at 160dpi (scale = 1)
Designer Script code:
B4X:
'All variants script
AutoScaleRate(1)
AutoScaleAll
pnlScoreboard.SetLeftandRight(0%x,100%x)
pnlScoreboard.SetTopandBottom(0%y, 8%y)
lblScore.Left = 2%x
lblScore.VerticalCenter = pnlScoreboard.VerticalCenter - 1.5%y
lblScore.TextSize = 28
pnlTouchPad.SetTopAndBottom(70%y, 100%y)
pnlTouchPad.SetLeftandRight(0%x,100%x)
pnlController.Height = 125dip
pnlController.Width = 125dip
pnlController.HorizontalCenter = 50%x
pnlGameWindow.SetTopAndBottom(pnlScoreboard.Bottom, pnlTouchPad.Top)
pnlGameWindow.SetLeftAndRight(0%x, 100%x)
lblLvl.Top = pnlScoreboard.top - 1%y
lblLvl.Left = 35%x
lblLvl.TextSize = 18
lblDogsRemain.Right = pnlScoreboard.Right - 1.5%x
lblDogsRemain.Top = pnlScoreboard.Top - 4.25%y
lblDogsRemain.TextSize = 18
lblCatsRemain.Right = pnlScoreboard.Right - 1.5%x
lblCatsRemain.Top = pnlScoreboard.Top - 1%y
lblCatsRemain.TextSize = 18
pnlShovels.SetTopandBottom(pnlScoreboard.Top +3dip, pnlScoreboard.Bottom - 3dip)
pnlShovels.Width = 19%x
pnlShovels.Left = pnlScoreboard.Left +60%x
Also note that the white circle at the bottom did not scale.
Thoughts?
-Sterling
Last edited: