android-Animation

参考:http://www.cnblogs.com/feisky/archive/2010/01/11/1644482.html

 

1. Tween Animation:通过对场景里的对象不断做图像变换(alpha , 平移、缩放、旋转)产生动画效果,即是一种渐变动画

xml

alpha 渐变透明度动画效果
scale 渐变尺寸伸缩动画效果
translate 画面转换位置移动动画效果
rotate 画面转移旋转动画效果


在Java 
AlphaAnimation渐变透明度动画效果
ScaleAnimation渐变尺寸伸缩动画效果
TranslateAnimation画面转换位置移动动画效果
RotateAnimation画面转移旋转动画效果

 

多调用:

xml

  set

Frame Animation是顺序播放事先做好的图像,跟电影类似

 

xml

<animation-listxmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="true">
<itemandroid:drawable="@drawable/rocket_thrust1"android:duration="200"/>
<itemandroid:drawable="@drawable/rocket_thrust2"android:duration="200"/>
<itemandroid:drawable="@drawable/rocket_thrust3"android:duration="200"/>
</animation-list>
code:

AnimationDrawable


posted on 2014-03-06 12:00  wjw334  阅读(103)  评论(0编辑  收藏  举报

导航