Hy !
On a layout, I have 1 button (BT) with one bitmap drawable (.png file).
On a list (Lst), with AddTwoLinesAndBitmap2, I would like to add an icon according to icon of button (BT).
I've tried something like this:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Unfortunately, it doesn't work ....
I've got the error:
I've tried to declare image as BitmapDrawable but still again :
I think Bt.Background cannot be use as I think ....
But, how to get an image not directly stored on the device but coming from the layout ?
Any suggestions ???
Thanks in advance.
			
			On a layout, I have 1 button (BT) with one bitmap drawable (.png file).
On a list (Lst), with AddTwoLinesAndBitmap2, I would like to add an icon according to icon of button (BT).
I've tried something like this:
			
				B4X:
			
		
		
		Dim Image As Bitmap
Image = Bt.Background
Lst.AddTwoLinesAndBitmap2("Text1","Text2",Image,1)
	Unfortunately, it doesn't work ....
I've got the error:
"incompatible types: Drawable cannot be converted to Bitmap"
I've tried to declare image as BitmapDrawable but still again :
"incompatible types: BitmapDrawable cannot be converted to Bitmap"
I think Bt.Background cannot be use as I think ....
But, how to get an image not directly stored on the device but coming from the layout ?
Any suggestions ???
Thanks in advance.