For i= 0 To 29
'check the panel size - it changes in different devices
Dim pTemp As B4XView = xui.CreatePanel("")
pTemp.SetLayoutAnimated(0, 0, 0, 100%x, 100%y)
pTemp.LoadLayout("with_panel")
Dim p2 As Panel = pTemp.GetView(0) 'first item of the layout = back panel
'put the size of the back panel into a variable
Dim PanelHeight As Int = p2.Height
pTemp.RemoveAllViews
Dim Pnl As B4XView = xui.CreatePanel("")
' Pnl.SetLayoutAnimated(0, 0,0, xClv.AsView.Width, 400dip)
Pnl.SetLayoutAnimated(0, 0,0, xClv.AsView.Width, PanelHeight)
Pnl.LoadLayout("with_panel")
Dim lbl As List = Array(lblPOID, lblRequestedBy, lblReqDate, lblPODate, lblPark, lblDesc, lblVendor, lblPOTypeDesc, lblAmount)
For Each l As B4XView In lbl
l.Color = xui.Color_Cyan
Next
xClv.Add(Pnl, i)
Next