the animation ripple implement the via RippleBackgound class (link github.com).then you have implement code how to fade in and fade animation ripple.
RippleView rippleView=new RippleView(getContext());
ObjectAnimator fadeOut = ObjectAnimator.ofFloat(rippleView, "alpha", 1f, .3f);
fadeOut.setDuration(2000);
ObjectAnimator fadeIn = ObjectAnimator.ofFloat(rippleView, "alpha", .3f,1f);
fadeIn.setDuration(2000);
animatorSet.play(fadeIn).after(fadeOut);
0 comments