Java

anim=AnimationUtils.loadAnimation(this,R.anim.MyAnimation);anim.setAnimationListener(newAnimationListener(){publicvoidonAnimationStart(Animationanimation){}publicvoidonAnimationRepeat(Animationanimation){}publicvoidonAnimationEnd(Animationanimation){//Do something or start a new animation}});((TextView)findViewById(R.id.lblText)).startAnimation(anim);