【发布时间】:2016-07-27 15:29:08
【问题描述】:
我有 4 个图像视图我想通过移动和缩放动画将图像 1 移动到图像 2 的位置。 [
我尝试过的缩放
ObjectAnimator scaleX = ObjectAnimator.ofFloat(img1, "scaleX", (float) img2.getWidth());
ObjectAnimator scaleY = ObjectAnimator.ofFloat(img1, "scaleY", (float) img2.getHeight());
scaleX.setDuration(2000);
scaleY.setDuration(2000);
AnimatorSet scale = new AnimatorSet();
scale.play(scaleX).with(scaleY);
scale.start();
【问题讨论】:
标签: android android-layout android-animation