1.闪烁动画 AlphaAnimation
1
2
3
4
5
6
7
8
9
|
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/p/3567661.html,如需转载请自行联系原作者