I am using code from here to display an expand/collapse animation of a LinearLayout: https://stackoverflow.com/a/5122460/458603
Animation quickEntryAnimation = new HeightAnimation(mQuickEntryArea, DisplayHelper.dpToPixel(200, this), mQuickEntryArea.getHeight() < 10);
quickEntryAnimation.setDuration(300);
mQuickEntryArea.startAnimation(quickEntryAnimation);
mQuickEntryArea.invalidate();
It collapses just fine, but whenever mQuickEntryArea's height is 0, it will only expand after something has caused the whole view to re-layout (e.g. tapping the screen). What's happening?