So, I am aware that you can define different layouts for different screens and orientations. The problem I have is in grasping which will be used when.
I am considering three devices (as an example):
At the start, there is a main.xml
in res/layout
which is the default layout to be used in portrait mode. Then, you can define main.xml
in res/layout-land
which is the default layout to be used when the phone is held in landscape mode.
These are the two layouts which will be used for Samsung Galaxy S3 and Nexus 7 and small phones because I have not defined anything specific.
Now, I want to define a layout, specifically for the small phone and portrait mode, in addition to the ones mentioned above. It will go under res\layout-small\main.xml
My question is: How will the layout for the small screen be chosen when it is held in landscape mode?