I\'m using a ViewSwitcher that lets me easily flip back and forth between two different List Headers with Animations built in.
However, the problem is the two views are
Set the measureAllChildren attribute on the ViewSwitcher to false.
measureAllChildren
ViewSwitcher
false
<ViewSwitcher xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:measureAllChildren="false">
For more info see documentation.