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

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -