Corners around a label

moster67

Expert
Licensed User
Longtime User
I'd like to put a corner around a label programatically.

Anyone who can show some sample-code to obtain that? Thanks.
 

moster67

Expert
Licensed User
Longtime User
never mind. I found it in the documentation. For those interested:

ColorDrawable
A drawable that has a solid color and can have round corners.
Example:
B4X:
Dim cd As ColorDrawable
cd.Initialze(Colors.Green, 5dip)
Button1.Background = cd


Erel: By the way, the above sample code from the documentation has a spelling error in this line:

B4X:
cd.Initialze(Colors.Green, 5dip)

where Initialze should of course be Initialize
 
Upvote 0
Top