hi i want to get a "android.graphics.drawable.Drawable"
but b4a does't support this
this is my code in class module
Public Sub setMainActionDrawable(Drawable As BitmapDrawable)
Imageview1.Background = Drawable
End Sub
but when i want to set a background image to this image view by using this code(in main activity)
dim xml as XmlLayoutBuilder
Tools.MainActionDrawable = xml.GetDrawable("icon")
then error message said
error: incompatible types: android.graphics.drawable.BitmapDrawable cannot be converted to anywheresoftware.b4a.objects.drawable.BitmapDrawable
what is the solution?
how i can set the image view background by using this sub with xmllayoutbuilder?