Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All.

I am developing an android application that there is a effect i want to implement. i do not know what is the name of that effect. it seems ripple effect. i searched about it but no good results found. this is the link. i need orange color effect that appear from top|left corner to below. Thanks a lot

What I have tried:

I have searched internet bit can not found any good sample
Posted
Updated 8-Mar-20 6:13am

1 solution

I found it. it is named as circular reveal animation. this is the code for implementing it.

Java
private void RippleAnimation()
    {
        // get the top left for the clipping circle
        int cx = 0;
        int cy = 0 ;

        // get the final radius for the clipping circle
        int finalRadius = Math.max(myView.getWidth(), myView.getHeight());

        // create the animator for this view (the start radius is zero)
        Animator anim =
                ViewAnimationUtils.createCircularReveal(myView, cy, cx, 0, finalRadius);

        //Interpolator for giving effect to animation
        anim.setInterpolator(new AccelerateDecelerateInterpolator());
        // Duration of the animation
        anim.setDuration(500);

        // make the view visible and start the animation
        myView.setVisibility(View.VISIBLE);
        anim.start();
    }

happy coding :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900