LinearLayout doesnt appear correctly after changing its height through applyTransformation

view story

http://stackoverflow.com – I'm trying to perform a smooth transition (expand/collapse) on my LinearLayout through Animation. Here's the code that i'm using for the animation: Animation anim = new Animation(){ @Override protected void applyTransformation(float interpolatedTime, Transformation t){ super.applyTransformation(interpolatedTime, t); layout.getLayoutParams().height = (int)(84*interpolatedTime); layout.requestLayout(); } }; The problem is that the expand/collapse animation works fine but the layout itself doesn't appear correctly once the animation is done. That following g (HowTos)