Rachbob Member Licensed User May 25, 2020 #1 hello everyone, in my application i need to extract selected image from listview to display it in a large imageView. i get the error in the debug mode say i must initialise the bitmap. here is my code : B4X: Sub ListView1_ItemClick (Position As Int, Value As Object) Dim img As Bitmap img= ListView1.TwoLinesAndBitmap.ImageView.Bitmap ImageView1.Bitmap= img End Sub Please tell me what is wrong. thank you.
hello everyone, in my application i need to extract selected image from listview to display it in a large imageView. i get the error in the debug mode say i must initialise the bitmap. here is my code : B4X: Sub ListView1_ItemClick (Position As Int, Value As Object) Dim img As Bitmap img= ListView1.TwoLinesAndBitmap.ImageView.Bitmap ImageView1.Bitmap= img End Sub Please tell me what is wrong. thank you.
Erel B4X founder Staff member Licensed User Longtime User May 25, 2020 #2 Rachbob said: Please tell me what is wrong. Click to expand... Using ListView is a mistake, especially if the layout is not a simple list of strings. You should use xCLV. Upvote 0
Rachbob said: Please tell me what is wrong. Click to expand... Using ListView is a mistake, especially if the layout is not a simple list of strings. You should use xCLV.