public void fadeDown ( int duration ) { //fade down mContainer . clearAnimation ( ) ; ResizeWidthAnimation anim = new ResizeWidthAnimation ( mContainer , mMinWidth , new ApplyTransformationListener ( ) { @ Override public void applyTransformation ( int width ) { overlapViews ( width ) ; } } ) ; anim . setDuration ( duration ) ; mContainer . startAnimation ( anim ) ; }
animate to the small view