ObjectAnimator animator = ObjectAnimator.ofFloat(imageView, "alpha", 1f, 0f, 1f);
animator.setDuration(2000);
animator.start();
//360度旋转
ObjectAnimator animator = ObjectAnimator.ofFloat(imageView, "rotation", 0f, 360f, 0f);
animator.setDuration(2000);
animator.start();
//左右移动
ObjectAnimator animator = ObjectAnimator.ofFloat(imageView, "translationX", 0f, -300f, 0f);
animator.setDuration(2000);
animator.start();
//上下移动
ObjectAnimator animator = ObjectAnimator.ofFloat(imageView, "translationY", 0f, -300f, 0f);
animator.setDuration(2000);
animator.start();
//左右缩放
ObjectAnimator animator = ObjectAnimator.ofFloat(imageView, "scaleX", 1f, 2f, 1f);
animator.setDuration(2000);
animator.start();
//上下缩放
ObjectAnimator animator = ObjectAnimator.ofFloat(imageView, "scaleY", 1f, 2f, 1f);
animator.setDuration(2000);
animator.start();
//组合动画
//监听事件