애니메이션 리스너에서 제공되는 Animator에서 .cancel()을 호출 할 수없는 몇 가지 이유가 있습니까? 나는 다음과 같은 코드를 실행하면왜 애니메이션 리스너에서 .cancel()을 호출하면 StackOverflowError가 발생합니까?
은 내가 StackOverflowError가 발생합니다 :
animation.addListener(new ValueAnimator.AnimatorListener() {
@Override
public void onAnimationStart(Animator animator) {
if (!showCircles)
animator.cancel();
}
....
'animation.cancel()'을 호출하면 어떻게 될까요? – tolgap
'animation'은 내부 클래스 내에서 호출 될 수 없습니다 (final로 선언되지 않는 한). – gsysko