Android Question Is there a way to make label with radius curves on one side only?

Erel

B4X founder
Staff member
Licensed User
Longtime User


B4X:
Sub Globals
   Private label1 As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
   Activity.LoadLayout("1")
   Dim lo As JavaObject = label1.Background
   lo.RunMethod("setCornerRadii", Array As Object(Array As Float(10dip, 10dip, 10dip, 10dip, 0, 0,  0, 0)))
End Sub
Make sure that the label has round corners in the designer.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…