Android 动画

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();
        }

  

原文地址:https://www.cnblogs.com/linlf03/p/3567661.html