Oct 22, 2014 Replies: 83 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: (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 RippleEffect.zip 8.9 KB · Views: 1,803 Example.zip Example.zip 8.8 KB · Views: 1,571 Last edited: Nov 21, 2018 Click to expand...
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: (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.
Douglas Farias Expert Licensed User Longtime User Nov 21, 2018 #81 Erel said: 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 Click to expand... hi erel, can you post a simple example? i m added the effect into a panel, into a clv Code: 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 Code: Sub clvStickers_ItemClick (Index As Int, Value As Object) It is simple to use it. See the included example. Click to expand... i think u forgot to put a example on post #1 later the last update
Erel said: 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 Click to expand... hi erel, can you post a simple example? i m added the effect into a panel, into a clv Code: 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 Code: Sub clvStickers_ItemClick (Index As Int, Value As Object) It is simple to use it. See the included example. Click to expand... i think u forgot to put a example on post #1 later the last update
Erel B4X founder Staff member Licensed User Longtime User Nov 21, 2018 #82 I've uploaded an example to the first post.
morteza ariyan Member Mar 25, 2020 #83 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Mar 25, 2020 #84 You can disable it with: Code: Dim jo As JavaObject = Label1.Parent jo.RunMethod("setRippleDuration", Array(0)) morteza ariyan said: other question is I want the ripple continue showing until I press the button Click to expand... Not possible.
You can disable it with: Code: Dim jo As JavaObject = Label1.Parent jo.RunMethod("setRippleDuration", Array(0)) morteza ariyan said: other question is I want the ripple continue showing until I press the button Click to expand... Not possible.