title: how to prevent layout from any changes when device is rotated?
body: <p>I think I have question that looks similar to many old questions but it is not the same.</p>
  
  <p>I would like the application not to change layout orientation when device is rotated while application is running.
  This:</p>
  
  <pre><code>android:screenOrientation = "portrait"
  </code></pre>
  
  <p>...does NOT do the trick. I don't want to have application with fixed orientation. I would like just to prevent it from changing when application is working.</p>
  
  <p>This:</p>
  
  <pre><code>android:configChanges="orientation"
  </code></pre>
  
  <p>...does NOT do the trick. When set, application does not restart, layout does not change to another but current layout is rotated and stretched according to new device orientation.</p>
  
  <p>All what I would like to achieve is to choose proper layout according to orientation when activity starts and after that remain the same layout and the same layout orientation until application finishes.</p>
  
  <p>Anybody knows how to do this easily?</p>