B4A Class StrokeDemo

Discussion in 'Additional libraries, classes and official updates' started by icefairy333, Sep 24, 2015.

  1. icefairy333

    icefairy333 Active Member Licensed User

    setting a stroke on any views.
    you should use this with javaobject lib
    'using javaobject
    Public Sub getGradientDrawableEx(gd As GradientDrawable,broderwidth As Int,brodercolor As Int) As Object
    Dim jo As JavaObject
    '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

    Attached Files:

    Johan Schoeman and ArminKH like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice