属性动画组合解析
//先创建动画
ObjectAnimator rotation = ObjectAnimator.ofFloat(textview, "rotation", 0f, 360f);
ObjectAnimator alpha = ObjectAnimator.ofFloat(textview, "alpha", 1f, 0f);
ObjectAnimator translationX = ObjectAnimator.ofFloat(textview, "translationX", -500f, 0f);
//创建动画集合
AnimatorSet animatorSet = new AnimatorSet();
//运行动画集合
animatorSet.play(rotation).with(alpha).with(translationX).setDuration(3000).start();
这样三个动画就可以一起运行
然后with是一起运行的意思
还有其他的方法
after是之后
before是之前
with是一起