traex / ExpandableLayout

Implementation of ExpandableListview with custom header and custom content.
MIT License
1.64k stars 361 forks source link

setLayoutAnimationListener() Will Not Work #47

Open commonsguy opened 8 years ago

commonsguy commented 8 years ago

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.

commonsguy commented 8 years ago

You can see a patch for this at https://github.com/commonsguy/ExpandableLayout/commit/690467300384c55a4ba29a51e8730be5773a2bfd -- let me know if you would like a pull request.