方法一:
①参考: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. android中颜色参考
  2. Android(安卓)安全性和权限
  3. Android(安卓)Animation无限循环动画
  4. ListView常用方法整理
  5. Android(安卓)SDK4.0离线快速安装方法
  6. Android实现TextView跑马灯效果
  7. android 一行两个按钮居中 布局
  8. Android(安卓)背景图片平铺
  9. android中Drawable方法详解

随机推荐

  1. android java 检测文件夹(目录)是否存在,
  2. Android手机卫士(一)
  3. android获取控件宽高
  4. Android(安卓)实现跳转到Google Play 详
  5. Android(安卓)自定义 LinearLayout
  6. Android(安卓)使用AlarmManager设置闹钟
  7. android 通讯录的增删改查
  8. Android(安卓)中颜色对应的值
  9. Android(安卓)zip文件压缩解压缩
  10. Android(安卓)判断 PendingIntent 是否存