Ive got a template that im building in designer as per attached image and have added some designer script as below...
When i change to a larger viewer like Nexus 7 the webviews and buttons both accommodate half the screen each.
Can anyone tell me what wrong with the above script??
B4X:
'All variants script
AutoScaleAll
pnlLower.Bottom = 100%y
pnlLower.SetTopAndBottom(WebView1.Bottom, 100%y)
pnlLower.Width = 100%x
WebView1.Width = 100%x
WebView1.SetTopAndBottom(0%x, pnlLower.Top)
'buttons
b = 33%x
pad = 4dip
btnDown1.SetLeftAndRight(0, b)
btnDown1.SetTopAndBottom(pad, pnlLower.Height - pad)
btnDown2.SetLeftAndRight(b, 2 * b)
btnDown2.SetTopAndBottom(pad, pnlLower.Height - pad)
btnDown3.SetLeftAndRight(2 * b, 3 * b)
btnDown3.SetTopAndBottom(pad, pnlLower.Height - pad)
When i change to a larger viewer like Nexus 7 the webviews and buttons both accommodate half the screen each.
Can anyone tell me what wrong with the above script??