I have created an android application which works properly for nexus 7. Inside resources folder, I have created two folders, layout, layout-land for Ne
layout
layout-land
You need one for xlarge and xlarge-land aswell
Or you can do it programmatically by calling:
Display displayparm= activity.getWindowManager().getDefaultDisplay(); int width= displayparm.getWidth(); int Height= displayparm.getHeight();
and choosing layout from this info