For Android , I need to implement animated ripple effect when i touch on any element/view. How do i achieve it ?
Material Design Ripple Event
353 views Asked by code At
2
There are 2 answers
0

The ripple is centered on the drawable's hotspot, which is set when the button gets touched. Check out Drawable.setHotspot(float x, float y).
According to the Android Documentation :
The effect is drawn with center specified with
setHotspot()
method