B4J Question Custom listview

ThorstenStueker

Member
Licensed User
I have a string array I want to shoe in a custom listview but it looks like I am to stupid to. I need help for it. Thanks.
 

AnandGupta

Expert
Licensed User
Longtime User
Just show the codes you have done for it and we may help you.

Regards

Anand
 
Upvote 0

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Value is an item that you want to associate with that entry in the CLV.

For example, if your CLV was a list of text strings which described different websites, you may have

B4X:
clv.addtextitem("Google","https://google.com")

so when the user taps the item

the clv_itemclick event is fired

B4X:
private sub clv_itemclick(pos as int,value as object)
' if you clicked on the Google item, value will not contain "https://google.com"
'you would need to assign it to a string before use
end sub

Hope that helps.
 
Upvote 0
Top