After using the designer to add views, place them according as per your design, have an option to "Create Designer Script".
Example:
'All variants script
delta = ((100%x + 100%y) / (320dip + 480dip) - 1)
rate = 0.1
scale = 1 + rate * delta
Panel1.SetLeftAndRight(0, 100%x )
Panel1.SetTopAndBottom(0, 100%y )
B1.SetLeftAndRight(Panel2.Left + 1dip, w*scale)
B1.SetTopAndBottom(Panel2.Top + 1dip, h * scale)
All left/right - top/bottom %x and %y would be relative to the parent of the view. Start at the top of the container (panel / activity) and work down left to right, setting each view in designer script code.
w = 22.5%x
w*scale - somehow it would need to deal with / define these vars...
Seems to me it could create a base template (like we do manually now for all views) and then we could tweek as desired???
Example:
'All variants script
delta = ((100%x + 100%y) / (320dip + 480dip) - 1)
rate = 0.1
scale = 1 + rate * delta
Panel1.SetLeftAndRight(0, 100%x )
Panel1.SetTopAndBottom(0, 100%y )
B1.SetLeftAndRight(Panel2.Left + 1dip, w*scale)
B1.SetTopAndBottom(Panel2.Top + 1dip, h * scale)
All left/right - top/bottom %x and %y would be relative to the parent of the view. Start at the top of the container (panel / activity) and work down left to right, setting each view in designer script code.
w = 22.5%x
w*scale - somehow it would need to deal with / define these vars...
Seems to me it could create a base template (like we do manually now for all views) and then we could tweek as desired???