1.闪烁动画 AlphaAnimation
privatevoid startFlickerAnimation(ImageView img) {
final Animation animation = new AlphaAnimation(1f, 0)f;
animation.setDuration(500);
animation.setInterpolator(new LinearInterpolator()); // do not alter animation rate
animation.setRepeatCount(Animation.INFINITE); // Repeat animation infinitely
animation.setRepeatMode(Animation.REVERSE); //
img.setAnimation(animation);
animation.start();
}
作者:Work Hard Work Smart
出处:http://www.cnblogs.com/linlf03/
欢迎任何形式的转载,未经作者同意,请保留此段声明!
浙公网安备 33010602011771号