Hello,
I am having problems arranging views in a layout which will be inserted later in an xCustomview.
I look at it in the designer (F5) on the android device, it looks great, I insert it, I see only one label.
The layout should include 3 labels in a row, the left should adjust its size automatically, then the middle is aligned accordingly. The right should be located at the left of the left.
The anchor points are v.l.n. Left, Both, Right
lblLVInfo.Left = 5dip
lblLVInfo.Top = 0dip
lblLVInfo.Width = -2 '180dip
lblLVInfo.Height = -3 '30dip
lblLVValue.Height = lblLVInfo.Height
lblLVEinheit.Height = lblLVInfo.Height
lblLVValue.Top = lblLVInfo.Top
lblLVUnit.Top = lblLVInfo.Top
lblLVEinheit.Right = lblLVInfo.Left
lblLVWert.Left = lblLVInfo.Left + lblLVInfo.Width + lblLVInfo.Left
lblLVValue.Right = lblLVunit.Left - lblLVInfo.Left - lblLVunit.Width
'Panel
Underline.Left = lblLVInfo.Left
Underline.Right = lblLVInfo.Left
Underline.Top = lblLVInfo.Top + lblLVInfo.Height + 1 '31dip'
AutoScaleAll [/ CODE]
I have this in the main code:
p.SetLayout (0, 0, 100% x, 36dip)
Although I would rather 100% y instead of 36dip there, but that is not synonymous.
Could someone please show me the way?