如何在Android中暂停和重新启动动画?

如何在Android中暂停和重新启动动画?,android,android-layout,android-animation,Android,Android Layout,Android Animation,我想知道如何暂停和重新启动动画。我遵循了此代码,但它对我不起作用: animRight = AnimationUtils.loadAnimation(this, R.anim.move_right1); animRight.setDuration(3000); mTv1.setVisibility(TextView.VISIBLE); mTv1.setBackgroundResource(R.drawable.hand);

我想知道如何暂停和重新启动动画。我遵循了此代码,但它对我不起作用:

animRight = AnimationUtils.loadAnimation(this, R.anim.move_right1);
            animRight.setDuration(3000);
            mTv1.setVisibility(TextView.VISIBLE);
            mTv1.setBackgroundResource(R.drawable.hand);
            animRight.setAnimationListener(this);
            mTv1.startAnimation(animRight);

// override methods 

    @Override
    public void onAnimationEnd(Animation animation) {
// when animations is finished 
 }

    @Override
    public void onAnimationStart(Animation animation) {
// when animations is start
 }

    @Override
    public void onAnimationRepeat(Animation animation) {
// when animations is repeated  
 }
在这里,我想暂停并重新启动动画。我该怎么做

动画没有暂停方法

从API:


查看有关方法的评论。

没有暂停方法。您可以执行postDelayed。

我知道暂停方法在动画中不可用,是否有其他方法实现暂停和重新启动