Slide 69
Slide 69 text
Circular Reveal Animation
int x = (view.getLeft() + view.getRight()) / 2;
int y = (view.getTop() + view.getBottom()) / 2;
int startRadius = 0;
int endRadius = Math.hypot(x, y);
Animator anim = ViewAnimationUtils
.createCircularReveal(
view,
x,
y,
startRadius,
endRadius);
view.setVisibility(View.VISIBLE);
anim.start();
(x,y)
left right
top
bottom
hypot