XML : A single Android layout xml file that handles slightly different portrait and landscape layouts?

I get that if you want a different layout for portrait and landscape, you set up a different xml file for each orientation.

What if the changes are very small, and you don't want to have to maintain 2 sets of layout files every time a design changes? Is there any way to say in a single layout xml file:

if (portrait) ...

else ...

No comments:

Post a Comment