首页 > 其他 > 详细

donghua--suibian

时间:2015-03-19 23:31:42      阅读:354      评论:0      收藏:0      [点我收藏+]

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.另外

 

donghua--suibian

原文:http://www.cnblogs.com/zhangshuli-1989/p/4351886.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!