Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created November 17, 2015 08:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/7aaf961ae916b48dd806 to your computer and use it in GitHub Desktop.
Save hitherejoe/7aaf961ae916b48dd806 to your computer and use it in GitHub Desktop.
int centerX = (startView.getLeft() + startView.getRight()) / 2;
int centerY = (startView.getTop() + startView.getBottom()) / 2;
float finalRadius = (float) Math.hypot((double) centerX, (double) centerY);
Animator mCircularReveal = ViewAnimationUtils.createCircularReveal(
targetView, centerX, centerY, 0, finalRadius);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment