Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("layMain")
For i = 1 To 20
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, CustomListView1.AsView.Width, 60dip)
Dim pp As B4XView = xui.CreatePanel("")
pp.SetColorAndBorder(xui.Color_Blue, 2dip, xui.Color_White, 5dip)
p.AddView(pp, 0, 0, p.Width, p.Height)
CustomListView1.Add(p, "")
Next
End Sub