Android examples for User Interface:TextView Animation
Set Flicker Animation with TextViewAnimation
import android.view.animation.AccelerateInterpolator; import android.view.animation.AlphaAnimation; import android.view.animation.Animation; import android.view.animation.ScaleAnimation; import android.widget.ImageView; import android.widget.TextView; public class Main{ public static void SetFlickerAnimation(final TextView v, final String info, final String temp) { v.setText(info);//from w w w . j av a 2 s . c o m AlphaAnimation alphaanimation = new AlphaAnimation(0.0F, 1.0F); alphaanimation.setDuration(4000L); alphaanimation.setRepeatCount(-1); alphaanimation.setAnimationListener(new TextViewAnimation(info, temp, v)); v.startAnimation(alphaanimation); } }