//透明度渐变
animator = ObjectAnimator.ofFloat(mView,"alpha",1f,0f,1f);
//横向平移
animator = ObjectAnimator.ofFloat(mView,"translationX",0,100,0);
//旋转
animator = ObjectAnimator.ofFloat(mView,"rotation",0,180,0);
// 依Y轴旋转
animator = ObjectAnimator.ofFloat(mView,"rotationY",0,180,0);
//竖向平移
animator = ObjectAnimator.ofFloat(mView,"translationY",0,100,0);
//竖向缩放
animator = ObjectAnimator.ofFloat(mView,"scaleY",0,3,1);
break;
//几个动画合并
animator = ObjectAnimator.ofFloat(mView,"alpha",1f,0f,1f);
ValueAnimator animator1 = ObjectAnimator.ofFloat(mView,"rotation",0,180,0);
ObjectAnimator animator2 = ObjectAnimator.ofFloat(mView,"scaleY",0,3,1);
ObjectAnimator animator3 = ObjectAnimator.ofFloat(mView,"scaleX",0,3,1);
//几个动画合并播放
AnimatorSet animSet = new AnimatorSet();
animSet.play(animator1).with(animator).with(animator2).with(animator3);
animSet.setDuration(2000);
animSet.start();
break;