title: Android screen orientation in layout file
body: <p>So I have such problem I want to set layout default orientation in AndroidManifest.xml as landscape, but have different orientation for some layouts as portrait, but when I add <code>android:screenOrientation="portrait"</code> it doesn't override manifest configuration is there any work around? Main idea is to have tablets layout forced landscape and phone layout forced portrait.</p>
  
  <p>Here is an example of the same app for tablet and phone notice how layout orientation as landscape is forced for tablets and it doesn't rotate when device is rotated. And for phone is locked in portrait orientation and it doesn't rotate when device is rotated
  <a href="https://i.stack.imgur.com/x4E2W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x4E2W.png" alt="enter image description here"></a></p>