//透明動畫
AlphaAnimationalphaAnimation =new AlphaAnimation(1.0f,0.0f);
alphaAnimation.setDuration(3000);
alphaAnimation.setFillAfter(true);
iv.startAnimation(alphaAnimation);
//漸變動畫
ScaleAnimation scaleAnimation =new ScaleAnimation(0,1,0,1);
scaleAnimation.setDuration(3000);
scaleAnimation.setFillAfter(true);
iv.startAnimation(scaleAnimation);
//平移動畫
TranslateAnimation translateAnimation =new TranslateAnimation(0,300,0,300);
translateAnimation.setDuration(3000);
translateAnimation.setFillAfter(true);
iv.startAnimation(translateAnimation);
//旋轉(zhuǎn)動畫
RotateAnimation rotateAnimation =new RotateAnimation(0f,360f, Animation.RELATIVE_TO_SELF,0.5f, Animation.RELATIVE_TO_SELF,0.5f);
rotateAnimation.setDuration(3000);
rotateAnimation.setFillAfter(true);
iv.startAnimation(rotateAnimation);