首页 > 移动平台 > 详细

Android 动画

时间:2014-02-26 12:02:49      阅读:447      评论:0      收藏:0      [点我收藏+]

 

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

  

Android 动画

原文:http://www.cnblogs.com/linlf03/p/3567661.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!