ボタンクリックでテキストビューを点滅させるコードです。
start.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v)
{
recordShow.setVisibility(View.VISIBLE);
Animation anim = new AlphaAnimation(0.0f, 1.0f);
anim.setDuration(1000); //You can manage the time of the blink with this parameter
anim.setStartOffset(20);
anim.setRepeatMode(Animation.REVERSE);
anim.setRepeatCount(Animation.INFINITE);
recordShow.startAnimation(anim);
}
別のボタンのクリックで点滅を停止する必要があります...どうすればよいですか..??