title: Resizing layouts dynamically with ViewFlipper
body: <p>I have a layout sizing issue...</p>
  
  <p>I have a layout which consists of a ViewFlipper, a LinearLayout (containing a MapView), and a 2nd LinearLayout all in a vertical row.  </p>
  
  <pre><code>&lt;LinearLayout
      android:width="match_parent"
      android:height="match_parent" &gt;
  
      &lt;ViewFlipper
          android:width="match_parent"
          android:height="wrap_content" &gt;
          // Top elements
      &lt;/ViewFlipper&gt;
  
      &lt;LinearLayout
          android:width="match_parent"
          android:height="match_parent" &gt;
          // MapView
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:width="match_parent"
          android:height="wrap_content" &gt;
          // Bottom elements
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The problem I'm seeing is that when I change the ViewFlipper to show a shorter view with showNext() or showPrevious(), the middle LinearLayout does not expand to fill the space.  Also, I see black/empty space left over from the previous ViewFlipper view when I change to a shorter view.</p>
  
  <p>Is there a slick way to dynamically resize these elements so that the MapView layout will expand to fill all space not occupied by the ViewFlipper and bottom LinearLayout?</p>