This button is cut off at the bottom. It should be round.
On most devices it is OK, on some not, on some it is even cut in half.
I use this code to set a button containing a graphic symbol on a blue circle:
On most devices it is OK, on some not, on some it is even cut in half.
I use this code to set a button containing a graphic symbol on a blue circle:
B4X:
Sub setbackground (b As Button, bb As Button, siz As Int, dist As Int, xkorr As Int, ykorr As Int)
Dim rad As Int = b.Width
Dim c As Int = Main.a400color
bb.color=c
Dim cd As ColorDrawable
cd.Initialize (c,rad)
bb.Background=cd
bb.Left=b.Left-dist+xkorr
bb.Top=b.Top-dist+ykorr
bb.Width=siz
bb.Height=bb.Width
bb.Visible=True
b.Visible=True
b.BringToFront
End Sub