Hello,
This is beginner (as I am) question for sure.
I'm unable to fill a CLV entire width with added panels.
Here is a short code:
thx in advance.
Serge
This is beginner (as I am) question for sure.
I'm unable to fill a CLV entire width with added panels.
Here is a short code:
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("clv_test") ' <--- xCLV only
xCLV.sv.SetLayoutAnimated(0, 0dip, 0dip, 100%x, 100%y) ' <-- wich one of these 2 should
xCLV.GetBase.SetLayoutAnimated(0, 0dip, 0dip, 100%x, 100%y) ' <-- be placed at first?
For i = 1 To 10
Dim p As Panel
p.Initialize("pnl")
p.SetLayout(0dip, 0dip, xCLV.sv.Width, 10%y) ' <-- panels are only 30% of the CLV width ... why?
p.Color = Colors.Blue
xCLV.Add(p, 0)
Next
End Sub
thx in advance.
Serge