@Override public boolean onSingleTapUp(MotionEvent e) {
View nextView = getNext();
nextView.bringToFront();
nextView.setVisibility(View.VISIBLE);
final float finalRadius =
(float) Math.hypot(nextView.getWidth() / 2f, nextView.getHeight() / 2f) + hypo(
nextView, e);
Animator revealAnimator =
ViewAnimationUtils.createCircularReveal(nextView, (int) e.getX(), (int) e.getY(), 0,
finalRadius, View.LAYER_TYPE_HARDWARE);
revealAnimator.setDuration(MainActivity.SLOW_DURATION);
revealAnimator.setInterpolator(new FastOutLinearInInterpolator());
revealAnimator.start();
return true;
}
RadialTransformationActivity.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:CircleReveal
作者:
评论列表
文章目录