Hi there,
I'm new to B4X , only been learning it month or so. So sorry if I'm asking a newbie question,
The problem is this :
I have loaded the xCustomListView class into my project since that is the updated version of CustomListView, recommended for new projects.
I downloaded Erel's code from the forum (( https://www.b4x.com/android/forum/attachments/xcustomlistview-zip.63203/ )) and modified it
somewhat.
Now what I'm trying to do is load some images into the ImageView ( which I added from the designer) as shown in the CustomListView video tutorial. But I can't quite grasp how to structure line 37 , so it adds the images also:
clv2.Add(CreateListItem($"Item #${i}"$, clv2.AsView.Width, 60dip), $"Item #${i}"$)
Next
Also need to add images to the Sub CreateListItem as is missing any reference to images list for now.
I know i could just cut all the existing code out and copy in the code from the Video tutorial, but by posting the question maybe I can learn something new.
Thank you
I'm new to B4X , only been learning it month or so. So sorry if I'm asking a newbie question,
The problem is this :
I have loaded the xCustomListView class into my project since that is the updated version of CustomListView, recommended for new projects.
I downloaded Erel's code from the forum (( https://www.b4x.com/android/forum/attachments/xcustomlistview-zip.63203/ )) and modified it
somewhat.
Now what I'm trying to do is load some images into the ImageView ( which I added from the designer) as shown in the CustomListView video tutorial. But I can't quite grasp how to structure line 37 , so it adds the images also:
clv2.Add(CreateListItem($"Item #${i}"$, clv2.AsView.Width, 60dip), $"Item #${i}"$)
Next
Also need to add images to the Sub CreateListItem as is missing any reference to images list for now.
I know i could just cut all the existing code out and copy in the code from the Video tutorial, but by posting the question maybe I can learn something new.
Thank you