Android Question image update in customlistview

PumaCyan

Member
Licensed User
Hi all...

how to make the image on the list change to the newest image instantly

because at this point when there is a change in the image, the image in the list is not replaced immediately

even if I exit the page, when I reload the lists, the image is still the same, the old image
 

Attachments

  • tanya3.jpg
    212.3 KB · Views: 66
Last edited:

Sagenut

Expert
Licensed User
Longtime User
B4X:
Dim p As Panel = CustomListView1.GetPanel(0) 'Get the panel of the item you need to modify. Here is 0, so the first item in the CLV
Dim iv As ImageView = p.GetView(0) 'Get a reference to the ImageView to modify. 0 if imageview is the first view in the panel. It depends on your Views Tree
iv.Bitmap = LoadBitmap(dir, image_filename) 'Change the image
 
Upvote 0

PumaCyan

Member
Licensed User
Sorry I forgot to add... The image is sourced from an online server
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
You can retrieve the image from every source you need.
Then just assign it to the imageview with the same procedure.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…