Lets say that I have item1 how to access its data and update it ? Or is there documentation or code sample for that purpose ? I looked into xcustomelistview demo but update items is not implemented there
i looked into the demo but i got difficulty to understand i create items like this what i am trying to do to loop through the clv and update item where item equals item1
what i am trying to update is its label text and image with new data
B4X:
Sub CreateListItem(Text As String, Width As Int, Height As Int) As Panel
Dim p As Panel
p.Initialize("")
p.SetLayout(0, 0, Width, Height)
p.LoadLayout("cellitem")
itmlbl.Text = "item1"
label1.Text = " updated data "
label2.Text = "updated results "
img1.Bitmap = LoadBitmap(File.DirAssets, "1.png")
Return p
End Sub