Android Question Get the bitmap from a listview

Rachbob

Member
Licensed User
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.
 
Top