CircularReveal not working


#1

Animation anim = ViewAnimationUtils.createCircularReveal(mShowAnswer,cx,cy,radius,0); gives incompatible types error.

required Android.view.animation.Animation
Found android.animation.Animator


#2

Change the class type of anim from “android.view.animation.Animation” to “android.animation.Animator”


                Animator animator = ViewAnimationUtils.createCircularReveal(
                        mShowAnswerButton, cx, cy, radius, 0
                );