private void countDown(final TextView tv, final int count) { if (count == 0) { tv.setText(""); // Note: the TextView will be visible again here. return; } tv.setText(String.valueOf(count)); AlphaAnimation animation = new AlphaAnimation(1.0f, 0.0f); animation.setDuration(1000); animation.setAnimationListener(new AnimationListener() { public void onAnimationEnd(Animation anim) { countDown(tv, count - 1); } ...