Why i got below error on On B4xMainPage for customlistview, but it was fine on Main
Error On B4xMainPage:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
For n = 0 To 100
Dim p As B4XView = xui.CreatePanel("")
p.LoadLayout("2")
p.SetLayoutAnimated(0, 0, 0, p.Width, 50dip)
CustomListView1.Add(p,"")
Next
End Sub