What is Nexus 10 resource directory

124 Views Asked by At

Please Read the question carefully before marking it as duplicate I have tried this SO Layout folders for Google Nexus 7 and 10, didn't worked for me.

I am developing an app which should work on both tabs and phones. I've created following resource directories: layout-mdpi, layout-hpdi, layout-xhdpi, layout-xxhdpi, layout-xxxhdpi, layout-sw600dp, layout-sw600dp-land, layout-sw600dp-land-tvdpi (for nexus 7 land), layout-sw600dp-tvdpi (for nexus 7 portrait), layout-sw800dp, layout-sw800dp-land, layout-sw720dp, layout-sw720dp-land

**same for drawable and values

my problem is that in Nexus 10 it always takes from layout-xxxhdpi (which is certainly not for tab) instead of layout-sw720dp and layout-sw720dp-land.

Is there any way to create a separate folder for nexus 10?

I already have tried these with no result:-

layout-sw720dp-land-xhdpi

layout-sw720dp-xxhdpi

1

There are 1 best solutions below

1
AudioBubble On

Possible solution is to go by screen size - layout-large and/or layout-xlarge.
Once I developed for highres tablets (10"), I had to go with layout-large.

Also you pretty much don't that number of directories, research about RelativeLayout, wrap_content, match_parent and density pixels