标签:start values tco 开始 ima 理解 结束 lis upd
objectAnimator.setInterpolator(new AccelerateDecelerateInterpolator());
objectAnimator.setRepeatCount(Integer.MAX_VALUE);
objectAnimator.addListener(new Animator.AnimatorListener()
{
@Override
public void onAnimationStart(Animator animation)
{
//动画开始
}
@Override
public void onAnimationEnd(Animator animation)
{
//动画结束
}
@Override
public void onAnimationCancel(Animator animation)
{
//动画取消
}
@Override
public void onAnimationRepeat(Animator animation)
{
//动画重复
}
});
objectAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener()
{
@Override
public void onAnimationUpdate(ValueAnimator animation)
{
int values = (int) animation.getAnimatedValue();
}
});
objectAnimator.start();
objectAnimator.setInterpolator(new AccelerateDecelerateInterpolator());
objectAnimator.setRepeatCount(Integer.MAX_VALUE);
objectAnimator.addListener(new Animator.AnimatorListener()
{
@Override
public void onAnimationStart(Animator animation)
{
//动画开始
}
@Override
public void onAnimationEnd(Animator animation)
{
//动画结束
}
@Override
public void onAnimationCancel(Animator animation)
{
//动画取消
}
@Override
public void onAnimationRepeat(Animator animation)
{
//动画重复
}
});
objectAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener()
{
@Override
public void onAnimationUpdate(ValueAnimator animation)
{
int values = (int) animation.getAnimatedValue();
}
});
objectAnimator.start();
标签:start values tco 开始 ima 理解 结束 lis upd
原文地址:http://www.cnblogs.com/czhm/p/6104905.html