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