I feel pretty stupid right now, but I just can't get these panels to display centered in the loop with spacing between panels.
B4X:
Dim GapBetween As Float = 20dip
Dim WidthHeight As Float = 20dip
For i = 0 To 5 -1
Dim xpnl As B4XView = xui.CreatePanel("")...