码迷,mamicode.com
首页 > 其他好文 > 详细

donghua--suibian

时间:2015-03-19 23:34:58      阅读:196      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!