Android Question Transparant PNG on Button with Backgroudcolor [SOLVED]

AHilberink

Active Member
Licensed User
Longtime User
Hi,

I am trying to put a transparant PNG at a Button and need the backgroudcolor of the button.

I tried:
B4X:
    Button1.Color=Colors.DarkGray
    Button1.SetBackgroundImage(LoadBitmapResize(File.DirAssets,"scales.png",pnlWeging.Height-3dip,pnlWeging.Height-3dip,True)).Gravity=Gravity.CENTER_HORIZONTAL+Gravity.TOP

But the backgroudcolor is always white.

Somebody can help?

Kind regards,
André
 

AHilberink

Active Member
Licensed User
Longtime User
Upvote 0
Top