How to disable button while AlphaAnimation running

I want to disable click on button when the animation running. the code is below: AlphaAnimation anim = new AlphaAnimation(0.0f, 1.0f); anim.setDuration(4000); anim.setRepeatMode(Animation….