标签:
1.daima
import android.view.animation.Animation; import android.view.animation.AnimationSet; import android.view.animation.AnimationUtils; import android.view.animation.RotateAnimation; import android.view.animation.LayoutAnimationController; private Animation myHistoryAnimation; private LayoutAnimationController myLayoutControl; myHistoryAnimation = (Animation) AnimationUtils.loadAnimation( this, R.anim.history_clear_anim); myLayoutControl = new LayoutAnimationController(myHistoryAnimation); myLayoutControl.setDelay(0.4f); //myLayoutControl.setOrder(LayoutAnimationController.ORDER_NORMAL); myLayoutControl.setOrder(LayoutAnimationController.ORDER_REVERSE); mHistoryDisplayList.setLayoutAnimation(myLayoutControl);
2,引用
<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator" android:shareInterpolator="true" > <alpha android:duration="1000" android:fromAlpha="1.0" android:toAlpha="0.0" /> <translate android:duration="1000" android:fromXDelta="0" android:fromYDelta="0" android:toXDelta="0" android:toYDelta="40%" /> </set>
3.另外
标签:
原文地址:http://www.cnblogs.com/zhangshuli-1989/p/4351886.html