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: 想要闪烁的控件
*/
小知识---点击控件闪烁
最新推荐文章于 2022-10-28 20:15:22 发布