Utils.animateContent(contentContainer, displayHeight, new SimpleAnimationListener() { @Override public void onAnimationEnd(Animation animation) { fullScreen = true; Utils.animateContent(contentContainer, displayHeight, new SimpleAnimationListener() { @Override public void onAnimationEnd(Animation animation) { fullScreen = true; Utils.animateContent(contentContainer, defaultContentHeight, new SimpleAnimationListener()); return; Utils.animateContent(contentContainer, defaultContentHeight, new SimpleAnimationListener());