mSubItemsShown = !mSubItemsShown;
if (mListener != null) {
mListener.itemCollapseStateChanged(mSubItemsShown);
}
}
<BUG>private void animateViewIn(final ViewGroup viewGroup, int index) {
</BUG>
ValueAnimator animation = mSubItemsShown ? ValueAnimator.ofFloat(0f, 1f) : ValueAnimator.ofFloat(1f, 0f);
animation.setDuration(mAnimationDuration);
int delay = index * mAnimationDuration / mSubItemCount;

mSubItemsShown = !mSubItemsShown;
if (mListener != null) {
mListener.itemCollapseStateChanged(mSubItemsShown);
}
}
private void animateSubViews(final ViewGroup viewGroup, int index) {
ValueAnimator animation = mSubItemsShown ? ValueAnimator.ofFloat(0f, 1f) : ValueAnimator.ofFloat(1f, 0f);
animation.setDuration(mAnimationDuration);
int delay = index * mAnimationDuration / mSubItemCount;
