B4A Library Ripple Effect library

This library wraps this open source project: https://github.com/patrickpissurno/RippleEffect
License: https://github.com/patrickpissurno/RippleEffect/blob/master/LICENSE.txt
You can use it to add ripple effects to views:

demo.gif

SS-2017-04-02_09.46.32.png

(image taken from the open source documentation)

It is simple to use it. See the included example.

If you are applying this effect to a view that is added by code then you need to first add the view to its parent and then add the effect.
 

Attachments

  • RippleEffect.zip
    8.9 KB · Views: 1,326
  • Example.zip
    8.8 KB · Views: 1,096
Last edited:

Douglas Farias

Expert
Licensed User
Longtime User
I've uploaded a new version to the first post. It is based on a newer version of the open source project: https://github.com/patrickpissurno/RippleEffect
hi erel, can you post a simple example?

i m added the effect into a panel, into a clv

B4X:
        Private p As Panel
        p.Initialize("p")
        clvStickers.Add(p,16%y,m.GetKeyAt(i))
        p.LoadLayout("clvStickers")
        p.Color = Colors.Transparent
        riple.Initialize(p,Colors.RGB(17,139,126),250,False)

but the clv events is never fired with the effect, the effect works ok, but dont call the sub click

B4X:
Sub clvStickers_ItemClick (Index As Int, Value As Object)


It is simple to use it. See the included example.
i think u forgot to put a example on post #1 later the last update
 
I have 2 problems with it. I don't want the effect to work while the button is disabled.
and the other question is I want the ripple continue showing until I press the button.
 
Top