何时调用AnimationListener的onPauseAnimation?

时间:2016-02-20 00:51:41

标签: android android-animation

何时调用AnimationListener的onPauseAnimation?我们如何使用onPauseAmimation来使用任何其他动画来执行和恢复以前的动画?

'

animator.addListener(new AnimatorListenerAdapter() {
            @Override
            public void onAnimationStart(Animator animation) {
                Log.e("Testing : ", "onStart");
                super.onAnimationStart(animation);
            }

            @Override
            public void onAnimationEnd(Animator animation) {
                Log.e("Testing : ", "OnStop");

                super.onAnimationEnd(animation);
            }

            @Override
            public void onAnimationPause(Animator animation) {
                Log.e("Testing : ", "OnPause" + "it will never get called..");
                super.onAnimationPause(animation);
            }
        });
        animator.start(); 

'

0 个答案:

没有答案