Android View.startAnimation()动画
1.
android:repeatMode="restart"android:repeatCount="10"?
?
?
注:Delta也可以用%p位?
例子:
android:fromXDelta="0"?android:toXDelta="-100%p"?往左消失
android:fromXDelta="-100%p"?android:toXDelta="0"?左
android:fromXDelta="0"?android:toXDelta="100%p"?往右消失
android:fromXDelta="100%p"?android:toXDelta="0"?右
?
?
二、Rotate?定旋角度
的中心位置旋360度,1秒完成
<set?xmlns:android="http://schemas.android.com/apk/res/android">
<rotate?
????android:fromDegrees="0"
????android:toDegrees="+360"
????android:pivotX="50%"
????android:pivotY="50%"
????android:duration="1000"/>
</set>
三、Scale?定放
<set?xmlns:android="http://schemas.android.com/apk/res/android"??
????????android:interpolator="@android:anim/accelerate_interpolator">??
???<scale?android:fromXScale="0.0"?android:toXScale="1.0"??
?????????android:fromYScale="0.0"?android:toYScale="1.0"??
?????????android:pivotX="50%p"?android:pivotY="50%p"??
?????????android:duration="300"/>??
</set>?
//上面的效果中爆出的效果,可用于Activity的度效果
:Scale定如何沿著x方向(或y方向)改的大小,大小生化(pivot)位置是保持不的?pivotX/pivotYx/y的百分比
四、Alpha?定的透明痛
<set?xmlns:android="http://schemas.android.com/apk/res/android">
<alpha?
????android:fromAlpha="0.1"
????android:toAlpha="1.0"
????android:duration="3000"/>
</set>
????注:透明度化范0.0(透明)到1.0(不透明)
?
?
参考:http://blog.csdn.net/wfung_kwok/article/details/7202682