How to create different layout files portrait and landscape orientations?
it is not possible.
put two different files in layout folder, use one for portrait and other for landscape, based on orientation change.
use layout-port folder for portrait mode, and layout-land for landscape mode.
use layout-port folder for portrait mode, and layout folder for landscape mode.
Create two different xml layout files with same name, put one under res/layout-port folder and other under res/layout folder.
Android will automatically pick layout-port folder xml file for portrait mode, and other for landscape mode.
Back To Top