https://www.jianshu.com/p/2412d00a0ce4
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
img = findViewById(R.id.img);
//旋转
ObjectAnimator objectAnimator = ObjectAnimator.ofFloat(img, "rotation", 0, 360);
//渐变
ObjectAnimator objectAnimator1 = ObjectAnimator.ofFloat(img, "alpha", 0, 1);
//移动
ObjectAnimator objectAnimator2 = ObjectAnimator.ofFloat(img, "translationY", 0, 200);
//缩放
ObjectAnimator objectAnimator3 = ObjectAnimator.ofFloat(img, "scaleX", 0, 1);
//创建AnimatorSet对象
animatorSet = new AnimatorSet();
//加载功能
animatorSet.play(objectAnimator).with(objectAnimator1).with(objectAnimator2).with(objectAnimator3);
//设置时间
animatorSet.setDuration(5000);
//运行
animatorSet.start();