How to get ViewSwitcher to wrap only the currently displayed view height?
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 of greatly varying height and it appears that the ViewSwitcher with layout_height="wrap_content" , measures both children and takes the greater of the two heights as its own. This results in a large amount of unwanted blank space immediately below the smaller view when it is showing. I understand why this is desired ViewSwitcher behavior, but it is NOT desired My App behavior. Example: Say View A is 50dp tall and View B is 100dp