Today I’m posting textview blinking code. Blink it means the textview show and hide and repeat this action fastly.

Code

Animation anim =new AlphaAnimation(0.0f,1.0f);
anim.setDuration(50);
anim.setStartOffset(20);
anim.setRepeatMode(Animation.REVERSE);
anim.setRepeatCount(Animation.INFINITE);
text_id.startAnimation(anim);

Replace textview id with text_id