A single Android layout xml file that handles slightly different portrait and landscape layouts? -
i if want different layout portrait , landscape, set different xml file each orientation.
what if changes small, , don't want have maintain 2 sets of layout files every time design changes? there way in single layout xml file:
if (portrait) ...
else ...
depends on changes... better new layout programatically can if yes
if (getresources().getconfiguration().orientation == configuration.orientation_portrait) { //do code } else{ //do code }
Comments
Post a Comment