Android 动画

 

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,如需转载请自行联系原作者

上一篇:Oracle查询用户所有表


下一篇:jQuery内置函数map和each的用法