Android Question Floating action button Gradient

Emme Developer

Well-Known Member
Licensed User
Longtime User
Hi all! I'm using DSFloatingActionButton from @corwin42.
Is possible to set a gradient color to it?
I'm using this code, but doesn't work..
B4X:
    Dim cd As GradientDrawable
    cd.Initialize("TL_BR",Array As Int(Colors.Red,Colors.Black))
    cd.CornerRadius = fabPlus.Width/2
    fabPlus.Background = cd
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…