【Android】【动画】以圆形动画慢慢展开
【Android】【动画】以圆形动画慢慢展开

                Animator animator = ViewAnimationUtils.createCircularReveal(iv1, iv1.getWidth() / 2, iv1.getHeight() / 2, 0, iv1.getWidth() / 2);
                animator.setInterpolator(new AccelerateDecelerateInterpolator());
                animator.setDuration(2000);
                animator.setInterpolator(new AccelerateDecelerateInterpolator());
                animator.start();

                Animator animator = ViewAnimationUtils.createCircularReveal(iv2, 0, 0, 0, (float) Math.hypot(iv2.getWidth(), iv2.getHeight()));
                animator.setInterpolator(new AccelerateDecelerateInterpolator());
                animator.setDuration(2000);
                animator.setInterpolator(new AccelerateDecelerateInterpolator());
                animator.start();

相关文章:

  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2021-09-15
  • 2021-08-13
  • 2022-12-23
猜你喜欢
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案