B4J Question B4j Customlistview error on B4MainPage Class [SOLVED]

Ganiadi

Active Member
Licensed User
Longtime User
Dear All, Please Help

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

Tks For Helping
 

Ganiadi

Active Member
Licensed User
Longtime User
This is never the correct solution.

First step is to update to latest version of B4J. Then make sure that you are using xCustomListView and not an old version of CLV.
OK Tks Erel for the correction
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…