小知识---点击控件闪烁
程序员文章站
2024-03-25 12:55:04
...
Animation alphaAnimation = new AlphaAnimation( 1, 0.4f );
alphaAnimation.setDuration( 300 );
alphaAnimation.setInterpolator( new LinearInterpolator( ) );
alphaAnimation.setRepeatCount( Animation.INFINITE );
alphaAnimation.setRepeatMode( Animation.REVERSE );
mainCir.startAnimation( alphaAnimation );
/***
*mainCir: 想要闪烁的控件
*/