我想模仿动画在4图片1个单词,其中用户点击一个字母和飞行在屏幕上的某个地方。此字母可以是Button或ImageView。请参考下图:

只有Corona SDK / Lua才能做到这一点吗?我如何在Java中做到这一点?我只是一个初学者,所以我不知道如何开始,所以请不要问我已经尝试过的任何代码。
发布于 2014-02-13 00:28:26
您可以使用ObjectAnimator类在Android视图上执行动画。例如,如果必须为视图mView的y属性设置动画,则可以这样写:
float finalValue = 10f;
ObjectAnimator yAnimator = ObjectAnimator.ofFloat(mView, View.Y, finalValue);
yAnimator.start();要设置多个属性的动画,可以编写以下代码:
float finalX = 20f;
float finalY = 30f;
ObjectAnimator xAnimator = ObjectAnimator.ofFloat(mView, View.X, finalX);
ObjectAnimator yAnimator = ObjectAnimator.ofFloat(mView, View.Y, finalY);
new AnimatorSet().playTogether(xAnimator, yAnimator);https://stackoverflow.com/questions/21733641
复制相似问题