Android Layout Folder for Devices/Tablets which are always in Landscape

I'm developing an android app for phones and tablets.

I want all of the devices to use portrait layout. I made a 'layout' folder for it. But, there are some X number of devices which are always in landscape mode. Probably, large tablets. So, I made a 'layout-land' folder too.

Which folder I need to add so that X amount devices will always display landscape layout only, while other devices will always display portrait layout?

Main requirement is to have only portrait layouts displayed. But, display Landscape layout when device itself is in landscape mode(default). I am talking about devices that display drawer in landscape mode, and the ones that open landscape layout of apps only.

Is this automatic?

I have android:screenOrientation="portrait" in manifest. I can't test this as I don't have a tablet/large device.

I have already looked at this question and other similar questions.


在setContentView()之前的onCreate()方法中添加下面的行,

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORT‌​RAIT);
链接地址: http://www.djcxy.com/p/37960.html

上一篇: 手机/平板电脑的纵向模式和Android TV的横向模式?

下一篇: 设备/平板电脑的Android布局文件夹始终处于横向模式