B4A Class StrokeDemo

setting a stroke on any views.
you should use this with javaobject lib
1.png

B4X:
'using javaobject
Public Sub getGradientDrawableEx(gd As GradientDrawable,broderwidth As Int,brodercolor As Int) As Object
    Dim jo As JavaObject
    jo=gd
    'jo.RunMethod("setColor",Array As Object(c))
    'jo.RunMethod("setCornerRadius",Array As Object(f))
    jo.RunMethod("setStroke",Array As Object(broderwidth,brodercolor))
    Return jo
End Sub
 

Attachments

  • StrokeDemo.zip
    7.9 KB · Views: 274
Top