Android Question How to add multiple images to a CustomListView

I have a B4XMainPain with a CustomListView to which I want to add multiple images but I can't figure out how to do it. I can easily add text items but have been going round in circles for hours. I'm currently stuck at a point where I'm trying to add an item. The program crashes saying achord has not been initialized.

(clvChords and Panel1 were created in the designer)

Dim achord As B4XImageView
Dim chordimage as Bitmap

chordimage = LoadBitmapResize(File.DirAssets,"stduke.png",100dip,100dip,True)
clvChords.Add(Panel1,achord)

Can you help

I realise that this is a very basic thing but I can't find the answer.
The truth is I've searched the forum and watched tutorials till my head is about to explode trying to find out how the various things work. Personally, as someone new to B4X, I think the product is brilliant but trying to find out how to do things can be tortuous. I find using the forum as a route to finding a feature/functionality and how to use it takes forever, having to wade through numerous posts hoping to find something relevant. It's very frustrating. I know what I want to do, am sure that features/functionality is in the product but then spend hours trying find it and how to use it. Some stuff is in the booklets, some spread across different videos, some in posts and then there's B4X.help. I am making progress but it
Anyway, that's my moan over (too many hours in front my pc I think )

On a more positive note, the IDE is great and the Designer is the best of any I've used.

Regards
Phil
 

mangojack

Expert
Licensed User
Longtime User
Upload your project ... or a smaller sample project.

 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Two relevant examples:
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…