You are applying the supplied AnimationListener to animation. However, you replace animation on every expand() and collapse() call, and the new Animation does not have the listener. Either don't keep replacing animation, or hold onto the AnimationListener and apply it to each new Animation that you create.
You are applying the supplied
AnimationListener
toanimation
. However, you replaceanimation
on everyexpand()
andcollapse()
call, and the newAnimation
does not have the listener. Either don't keep replacinganimation
, or hold onto theAnimationListener
and apply it to each newAnimation
that you create.