I feel pretty stupid right now, but I just can't get these panels to display centered in the loop with spacing between panels.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
All my attempts were not centered at the end.
		
		
	
	
		 
	
			
			
			
				B4X:
			
		
		
		    Dim GapBetween As Float = 20dip
   
    Dim WidthHeight As Float = 20dip
   
    For i = 0 To 5 -1
       
        Dim xpnl As B4XView = xui.CreatePanel("")
        xpnl.SetColorAndBorder(xui.Color_Red,0,0,WidthHeight/2)
        Root.AddView(xpnl,(WidthHeight + GapBetween)*i,Root.Height/2 - WidthHeight/2,WidthHeight,WidthHeight)
       
    Next 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		