Android Question List View Change Content

victormedranop

Well-Known Member
Licensed User
Longtime User
HI, everyone.

one question :

if I have a listview like this
B4X:
ListView1.AddTwoLinesAndBitmap(trim_string(titulo),"",LoadBitmapSample(File.DirAssets,"play2.png",25dip,25dip))

is there a way to change the content of an specific position in the listview without
running everything again?

thanks,

Victor
 

DonManfred

Expert
Licensed User
Longtime User
No. You need to fill the listview again.
But you can use a customlistview instead.
 
Upvote 0

victormedranop

Well-Known Member
Licensed User
Longtime User
i found the problem.
missing function.


AMAZONG LIB !!!!!

B4X:
emisoras_list.Add(Info)
Log("Canales List size : " & emisoras_list.Size)
Dim ItemInfo As typInfo, LastWebSite As String
For i = 0 To emisoras_list.Size - 1
ItemInfo.Location = emisoras_list.Get(i)
If GetSiteName(ItemInfo.Location) <> LastWebSite Then
emisoras_view.AddItem("SiteSeparator", i)
LastWebSite = GetSiteName(ItemInfo.Location)
End If
emisoras_view.AddItem("Bitmap2Lines", i)
Next
emisoras_view.AddItem("SiteSeparator", -1)
 
Upvote 0
Top