title: Android - detect reverse landscape orientation
body: <p>I need to detect reverse landscape orientation in order to prevent user to start capturing vertical videos.</p>
  
  <p>I've implemented 2 layouts in <code>layout-land</code> and <code>layout-port</code> folders with different set of controls. The problem is that Android doesn't allow me to create a separate layout specifically for reverse landscape. I need this because video is recorded upside down in this case, albeit UI is displayed correctly.</p>
  
  <p>If I rotate device from 0 to 180 orientation Android doesn't even call <code>onCreate()</code> of my activity, but video becomes flipped in this case.</p>
  
  <p>Can somebody suggest a working example how to detect certain device orientation (reverse landscape in my case) to use another layout for this orientation?</p>