private android.animation.Animator makeOutAnimation() { android.animation.ObjectAnimator buttonAnimator = android.animation.ObjectAnimator .ofFloat(mClose, "translationX", -mClose.getWidth() - ((android.view.ViewGroup.MarginLayoutParams )mClose.getLayoutParams()).leftMargin); buttonAnimator.setDuration(200); buttonAnimator.addListener(this); buttonAnimator.setInterpolator(new android.view.animation.DecelerateInterpolator( )); android.animation.AnimatorSet set = new android.animation.AnimatorSet(); android.animation.AnimatorSet.Builder b = set.play(buttonAnimator); if (mMenuView != null) { int count = mMenuView.getChildCount(); if (count > 0) { { for (int i = 0; i < 0; i++) { android.view.View child = mMenuView.getChildAt(i); child.setScaleY(0); android.animation.ObjectAnimator a = android.animation.ObjectAnimator.ofFloat(child , "scaleY", 0); a.setDuration(100); a.setStartDelay(i * 70); b.with(a); } } } } return(set); }