There are four types of tween animations
//Transparency AnimationsAlphaanimation AA = (alphaanimation) animationutils.loadanimation (mainactivity. This, R.anim.myalpha);//Displacement AnimationTranslateanimation TA =Newtranslateanimation (animation.relative_to_self,0.5f, Animation.relative_to_self, 1f, Animation.relative_to_self,0.5f, animation.relative_to_self, 1f);//Rotate AnimationRotateanimation RA =NewRotateanimation (0, 360, Iv.getpivotx (), Iv.getpivoty ());//zoom in on animationScaleanimation SA =Newscaleanimation (animation.relative_to_self, 2f, animation.relative_to_s ELF, 2f);
XML form
<xmlns:android= "http://schemas.android.com/apk/res/android" Android : Fromalpha= "1" android:toalpha= "0.5" android:repeatcount = "1" android:repeatmode= "reverse" android:duration= " the" ></alpha>
Use Iv.startanimation (TA) for the view that you want to apply the animation to, and IV for a ImageView instance, Ta as an instance of an animation
Android Tween animation and frame animation summary