From d385e4c60fdc9ee85c0fc33c1165f1537a4a9c5e Mon Sep 17 00:00:00 2001 From: Ozodrukh Date: Sun, 11 Jan 2015 22:11:43 +0500 Subject: [PATCH] Update README.md --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 08e409a..ca4fca5 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Lollipop ViewAnimationUtils.createCircularReveal for everyone 2.3+ Yotube Video
Ripple DEMO
Sample @@ -61,11 +61,10 @@ Use regular `RevealFrameLayout` & `RevealLinearLayout` don't worry, only target // get the final radius for the clipping circle int finalRadius = Math.max(myView.getWidth(), myView.getHeight()); - ObjectAnimator animator = (ObjectAnimator) + SupportAnimator animator = ViewAnimationUtils.createCircularReveal(myView, cx, cy, 0, finalRadius); - animator.setInterpolator(new AccelerateInterpolator()); - animator.setDuration(500); - animator.setAutoCancel(true); + animator.setInterpolator(new AccelerateDecelerateInterpolator()); + animator.setDuration(1500); animator.start(); ```