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

Dman

Active Member
Licensed User
Longtime User
Like this? lblpic.png
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
SS-2013-11-28_10.59.47.png


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
Top