title: Camera Preview With Action Bar
body: <p>I'm trying to implement an activity with action bar support that shows up a camera preview surface in <strong>portrait</strong> mode. I'm calculating best preview size (from zxing code), but that code is not considering action bar dimensions (i.e. height), returning stretched image preview. Anyone encountered similar problem before? Any tutorial out there, about opening camera preview considering action bar height?</p>
  
  <p>EDIT:
  I'm targetting API level >= 8.</p>
  
  <ol>
  <li><p>I've added the style:</p>
  
  <p>
  
      true
      @null
      true
  </p></li>
  </ol>
  
  <p>I didn't find any compatible name for android:windowActionModeOverlay, maybe no
  support for that? What's the downside of not "overriding" it?</p>
  
  <ol>
  <li><p>I had to add:</p>
  
  <p>android:paddingTop="?attr/actionBarSize"</p></li>
  </ol>
  
  <p>to FrameLayout, this way, I've the correct space between AB and layout, vertically.
  I'm almost there, but <strong>notification bar</strong> is disappearing (I've only AB), I think because
  of the full screen tag. I'm already satisfied with current result, but if people out
  there have suggestions, they're welcome. =)</p>