protected class AbstractTabSwitcherLayout.AnimationListenerWrapper
extends android.animation.AnimatorListenerAdapter
Constructor and Description |
---|
AnimationListenerWrapper(android.animation.Animator.AnimatorListener listener)
Creates a new animation listener, which increases the number of running animations, when
the observed animation is started, and decreases the number of accordingly, when the
animation is finished.
|
Modifier and Type | Method and Description |
---|---|
void |
onAnimationCancel(android.animation.Animator animation) |
void |
onAnimationEnd(android.animation.Animator animation) |
void |
onAnimationStart(android.animation.Animator animation) |
onAnimationPause, onAnimationRepeat, onAnimationResume
public AnimationListenerWrapper(@Nullable android.animation.Animator.AnimatorListener listener)
listener
- The listener, which should be encapsulated, as an instance of the type Animator.AnimatorListener
or null, if no listener should be encapsulatedpublic void onAnimationStart(android.animation.Animator animation)
onAnimationStart
in interface android.animation.Animator.AnimatorListener
onAnimationStart
in class android.animation.AnimatorListenerAdapter
public void onAnimationEnd(android.animation.Animator animation)
onAnimationEnd
in interface android.animation.Animator.AnimatorListener
onAnimationEnd
in class android.animation.AnimatorListenerAdapter
public void onAnimationCancel(android.animation.Animator animation)
onAnimationCancel
in interface android.animation.Animator.AnimatorListener
onAnimationCancel
in class android.animation.AnimatorListenerAdapter