Hi all:
I have a xCustomListView and every item have a horizontal xCustomListView showing images.
When you click in a image (CLVFotos_ItemClick), the sub receives the Index of the image inside the ListView, and a list with the images in the ListView (Value)
I have two problems:
1.- When I close the panel showing the Imageslider, and click in another picture in another item of the ListView, I see pictures of the first one, mixed with the new one. I've tried to change the CacheSize to 1, but it's no working.
2.- I show the name of the picture in LblPicName, but I just see the name of the first picture. There's no "slide" event to change the label text?
Thanks in advance
I have a xCustomListView and every item have a horizontal xCustomListView showing images.
When you click in a image (CLVFotos_ItemClick), the sub receives the Index of the image inside the ListView, and a list with the images in the ListView (Value)
B4X:
Sub CLVFotos_ItemClick (Index As Int, Value As Object)
Log("****** Checklist CLVFotos_ItemClick ********")
'Index: Index of the image inside the listView
'Value: List of pics in the ListView
PanelFotos.Visible = True
ListOfPictures = Value 'Global variable
ImageSlider1.NumberOfImages = ListOfPictures.Size
ImageSlider1.PrevImage
For i = 0 To Index
ImageSlider1.NextImage 'Go to the clicked image as seen in a thread
Next
End Sub
B4X:
Sub ImageSlider1_GetImage (Index As Int) As ResumableSub
LblPicName.Text = ListOfPictures.Get(Index)
Return xui1.LoadBitmapResize(Starter.Folder & "/", ListOfPictures.Get(Index), _
ImageSlider1.WindowBase.Width, ImageSlider1.WindowBase.Height, True)
End Sub
I have two problems:
1.- When I close the panel showing the Imageslider, and click in another picture in another item of the ListView, I see pictures of the first one, mixed with the new one. I've tried to change the CacheSize to 1, but it's no working.
2.- I show the name of the picture in LblPicName, but I just see the name of the first picture. There's no "slide" event to change the label text?
Thanks in advance