なのでアニメーションを使ってブリンクさせる例をよく見かけます。例えばこんな感じ。
Animation animation = new AlphaAnimation(0.0f, 1.0f);
animation.setDuration(1000L);
animation.setRepeatMode(Animation.REVERSE);
animation.setRepeatCount(Animation.INFINITE);
View textView = findViewById(R.id.text_view);
textView.startAnimation(animation);
Android 3.0 以降であれば ObjectAnimator を使って、以下でもよいでしょう。
View textView = findViewById(R.id.text_view);
ObjectAnimator animator = ObjectAnimator.ofFloat(textView, "alpha", 0.0f, 1.0f);
animator.setDuration(1000L);
animator.setRepeatCount(ValueAnimator.INFINITE);
animator.setRepeatMode(ValueAnimator.REVERSE);
animator.start();
しかしアニメーションを使う方法は値を連続的に変化させるのでCPUに負荷がかかり、ブリンクさせている間中ずっとこの負荷がかかり続けます。この点がどうも気になります。
