Androidアニメには、Property AnimationとView Animationの2種類があります。
reference:
http://developer.android.com/guide/topics/resources/animation-resource.html#Property
http://developer.android.com/guide/topics/graphics/prop-animation.html
一、Property Animation(属性アニメーション)
1.適用対象:view objectとnon-view object。
API Classサポート:android.animation
2.xmlファイルで実現し、res/animatorディレクトリの下に置いて参照します。
In Java:R.animtor.filename
In XML:@[package:]アニメイト/filename
3.xml文法スタイル:
<set
android:ordering=["together" | "sequentially"]>
<objectAnimator
android:propertyName="string"
android:duration="int"
android:valueFrom="float | int | color"
android:valueTo="float | int | color"
android:startOffset="int"
android:repeatCount="int"
android:repeatMode=["repeat" | "reverse"]
android:valueType=["intType" | "floatType"]/>
<animator
android:duration="int"
android:valueFrom="float | int | color"
android:valueTo="float | int | color"
android:startOffset="int"
android:repeatCount="int"
android:repeatMode=["repeat" | "reverse"]
android:valueType=["intType" | "floatType"]/>
<set>
...
</set>
</set>
4.Resource DataType
Value Animer,Object Animator,orアニメイトSet.
xmlのラベルとの関係:
--> アニメイトセット