Android ImageView设置动画
程序员文章站
2024-03-26 08:52:47
...
1、设置闪烁效果
Animation animation = new AlphaAnimation(1, 0);
animation.setDuration(1000);
animation.setInterpolator(new LinearInterpolator());
animation.setRepeatCount(Animation.INFINITE);
animation.setRepeatMode(Animation.REVERSE);
imageView.setAnimation(animation);