(SOLVED) jListView image question lazarus / 43-Android ---------------------------------------------------------------------- xinyiman · 2022-12-16 14:29 Hi all, I'm experimenting with the jListView object. And in addition to the text I would like to put an image on each line, I found a way to do this, but it allows me to put the same image on all lines. But I want to change the image based on criteria at runtime. To understand it, it would be enough for me to see that on even lines it puts an image and on odd lines it puts another image. Can you help me? I enclose a very small project to show where I have arrived. ---------------------------------------------------------------------- rsu333 · 2022-12-17 13:39 Please refer demo example  , ---------------------------------------------------------------------- xinyiman · 2022-12-17 16:39 What demonstrative example? They are innumerable ---------------------------------------------------------------------- rsu333 · 2022-12-18 04:20 You can  see demo exm at lamw_manager>LAMW>lazandroidmodulewizard>demos>GAI >AppListViewDemo About 7 demo you can refer which are helpful ---------------------------------------------------------------------- xinyiman · 2022-12-18 11:01 but I watched them. I just didn't understand how to set different images for each row of the listview ---------------------------------------------------------------------- xinyiman · 2022-12-19 10:27 Solved with this code Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TAndroidModule1.ListView1DrawItemBitmap(Sender: TObject;  itemIndex: integer; itemCaption: string; out bimap: JObject);begin     if ((itemIndex mod 2)=0) then     begin        bimap := Self.jImageList1.GetBitmap(0)     end     else     begin          bimap := Self.jImageList1.GetBitmap(1);     end;end; ---------------------------------------------------------------------- rsu333 · 2022-12-19 13:21 Great ! This will useful to other also