Hello,
I'm trying to set a button with a color on the background and also an image.
But the only possible choice is the one or the other? Or I can set them both?
I'm trying to set a button with a color on the background and also an image.
But the only possible choice is the one or the other? Or I can set them both?
B4X:
Dim bmpTeam As Bitmap
Dim green As ColorDrawable
bmpTeam.Initialize ( File.DirAssets , "team.png")
green.Initialize(Colors.RGB(8, 125, 0), 10dip)
bt.Initialize("bt")
Activity.AddView(bt, Left1, Top1, btWidth, btHeight)
bt.Background = green
bt.SetBackgroundImage(bmpTeam)