ObjectAnimator
/**
* 透明度:alpha
* 旋转:rotationX(沿X轴旋转) rotationY(沿Y轴旋转)
* 平移:translationX(沿X轴平移) translationY(沿Y轴平移)
* 缩放:scaleX(水平X缩放) caleX(垂直缩放)
*/
ObjectAnimator animator1 = ObjectAnimator.ofFloat(img,"alpha",1f,0f,0.8f);
ObjectAnimator animator2 = ObjectAnimator.ofFloat(img,"rotationY",0,180);
//把两个动画结合在一起
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.play(animator1).with(animator2);
animatorSet.setDuration(3000); //设置动画时长
animatorSet.start(); //启动动画