While I'm new. I can not find a full and detailed example. How to make a beautiful effect for button when I click button. I like using a gradient fill please. I did not use in my work designer, all views I make manually.
Sanks, I watched this example but it wrote in Java. I do not know Java. In the Beginners Guide there is a similar example for the drawing, but I do not understand how to do this for the button.
The original source code is Java, that is a b4a library (wrapper) so you have only to download, install and use that library (RippleEffect.zip on bottom of the first post).
dim btnlabel as label
Dim gd As GradientDrawable
Dim Clrs(2) As Int
Clrs(0) = Colors.red
Clrs(1) = Colors.blue
gd.Initialize("TOP_BOTTOM", Clrs)
sub btnlabel_click
btnlabel.background = gd
end sub
'not tested
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.