Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ozodrukh committed Jan 11, 2015
1 parent 5709224 commit d385e4c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Lollipop ViewAnimationUtils.createCircularReveal for everyone 2.3+
<img src="http://7sbnrp.com1.z0.glb.clouddn.com/lollipop2-CircularReveal.gif" />

<a href="http://www.youtube.com/watch?feature=player_embedded&v=_vVpwzYb4Dg
" target="_blank"><img src="http://img.youtube.com/vi/_vVpwzYb4Dg/0.jpg"
" target="_blank">Yotube Video <br /> <img src="http://img.youtube.com/vi/_vVpwzYb4Dg/0.jpg"
alt="Ripple DEMO" width="320" height="240" border="10" /></a>

Sample
Expand Down Expand Up @@ -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();

```
Expand Down

0 comments on commit d385e4c

Please sign in to comment.