});
animation.start();
}
private void animateViewAlpha(final ViewGroup viewGroup, int index) {
ValueAnimator animation = mSubItemsShown ? ValueAnimator.ofFloat(0f, 1f) : ValueAnimator.ofFloat(1f, 0f);
<BUG>animation.setDuration(mSubItemsShown ? mAnimationDuration * 2 : mAnimationDuration);
animation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {</BUG>
@Override
public void onAnimationUpdate(ValueAnimator animation) {
float val = (float) animation.getAnimatedValue();

});
animation.start();
}
private void animateViewAlpha(final ViewGroup viewGroup, int index) {
ValueAnimator animation = mSubItemsShown ? ValueAnimator.ofFloat(0f, 1f) : ValueAnimator.ofFloat(1f, 0f);
animation.setDuration(mSubItemsShown ? mAnimationDuration * 2 : mAnimationDuration);
int delay = index * mAnimationDuration / mSubItemCount;
animation.setStartDelay(mSubItemsShown ? delay/2 : 0);
animation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
float val = (float) animation.getAnimatedValue();
