Hi All,
I am getting a strange error (See question title) when I try to add an item to a custom listview that I get from a layout I am loading.
The custom listview is index no 2 on my layout form (MyLayout) I am loading (So view 2)
So the error is basically saying that the '_add' method is not found? What am I doing wrong please help.
My code is:
I am getting a strange error (See question title) when I try to add an item to a custom listview that I get from a layout I am loading.
The custom listview is index no 2 on my layout form (MyLayout) I am loading (So view 2)
So the error is basically saying that the '_add' method is not found? What am I doing wrong please help.
My code is:
B4X:
Dim pnlCategory As B4XView = xui.CreatePanel("")
pnlCategory.SetLayoutAnimated(0, 0, 0, Width, Height)
pnlCategory.LoadLayout("MyLayout") 'Load my layout into the panel.
Dim lvwCategoryItems As CustomListView
lvwCategoryItems = pnlCategory.GetView(2) 'Get the custom listview on my layout form, it is index no 2 on the form.
lvwCategoryItems.Add(pnlTest,"Test") '<----- This line gives the above error.