i have a imageButton with a animation(moving from point A to B), and i want to make him invisible if I click it, the problem is, the button doesn't become invisible while the animation is on.
Animation code:
Animation animation = new TranslateAnimation(0, 0,-500, 600);
animation.setDuration(6000);
animation.setFillAfter(true);
rndCoin.startAnimation(animation);