title: Implementing Android Action Bar
body: <p>I am working on creating an Action Bar like the one from the new Android UI Patterns and I am running into a bit of trouble.  I have a <code>ViewSwitcher</code> with two layouts in it.  When the user taps the search button I animate between the two layouts.  The problem is that the layouts are different sizes and I can't figure out how to make them take up the same amount of space.  Here's what I mean.  p.s. forgive the bad art, they are just place holders ;)</p>
  
  <p>The red box is right up against the <code>ViewSwitcher</code> and there is a gap between that and the action bar for this layout:</p>
  
  <p><img src="https://i18.photobucket.com/albums/b141/CasetB/one.png" alt="Gap"></p>
  
  <p>but not this one:</p>
  
  <p><img src="https://i18.photobucket.com/albums/b141/CasetB/2.png" alt="No Gap"></p>
  
  <p>What I want is to tell the layouts in the <code>ViewSwitcher</code> to be the same size.  How can I do this?</p>