标签:
一、渐变动画
AlphaAnimation aa = new AlphaAnimation(0.3f, 1.0f); // fromAlpha , toAlpha
aa.setDuration(2000); //持续时间
view.startAnimation(aa); //为目标组件绑定动画效果
aa.setAnimationListener(new AnimationListener() {
@Override
public void onAnimationEnd(Animation arg0) {
}
@Override
public void onAnimationRepeat(Animation animation) {
}
@Override
public void onAnimationStart(Animation animation) {
}
});
标签:
原文地址:http://www.cnblogs.com/xingkai/p/5103075.html