方法一:
①参考:http://blog.csdn.net/jiangwei0910410003/article/details/16985999
②anim中主要参数设置:

android:interpolator="@android:anim/linear_interpolator"  android:repeatMode="restart"  android:repeatCount="infinite"

方法二:
①Animation设置setAnimationListener(new ReStartAnimationListener())
②ReStartAnimationListener()具体实现

    /** * 重复启动动画 */    private class ReStartAnimationListener implements Animation.AnimationListener {        public void onAnimationEnd(Animation animation) {            // TODO Auto-generated method stub            animation.reset();            animation.setAnimationListener(new ReStartAnimationListener());            animation.start();        }        public void onAnimationRepeat(Animation animation) {            // TODO Auto-generated method stub        }        public void onAnimationStart(Animation animation) {            // TODO Auto-generated method stub        }    }

更多相关文章

  1. ListView常用方法整理
  2. Android(安卓)SDK4.0离线快速安装方法
  3. Android实现TextView跑马灯效果
  4. android 一行两个按钮居中 布局
  5. Android(安卓)背景图片平铺
  6. android中Drawable方法详解
  7. 【精品教程】Android高手进阶教程pdf分享
  8. 【精品教程】Android高手进阶教程pdf分享
  9. Android系统启动——5 zyogte进程(Java篇)

随机推荐

  1. Android(安卓)Support兼容包详解
  2. Android中遍历文件夹、比较文件类型测试
  3. android 触摸手指动作放大和缩小图片
  4. android全屏显示
  5. Android实现文件上传功能
  6. Android(安卓)全屏
  7. android开机动画bootanimation
  8. 提示Android(安卓)dependency 'com.andro
  9. 选择框在右边的单选按钮。。
  10. android 通知Notification的使用小实例(振