B4J Question [RESOLVED] ListView Not Accepting New Items

cklester

Well-Known Member
Licensed User
I have a ListView being Dimmed as a B4XView. It won't allow me to programmatically add items to it.

I've seen some references to myListView.Items.Add(...), but my list view doesn't give me an "Items" property, nor any kind of Add or AddSingleItem method.

What might be going on here?
 

LucaMs

Expert
Licensed User
Longtime User
(from the Erel's tutorial about B4XViews)

1602003258729.png


then:
B4X:
Dim lv As ListView =  myListView ' <--- your B4XView ListView
lv.Items.Add...
Anyway, it is always better to use xCustomListView.
 
Upvote 0
Top