How to make specific dimens for Nexus 10 and Nexus 9

1k Views Asked by At

Nexus 9 has different aspect ratio, so the layout looks ugly when using 10" dimens.

I created two folders: values-sw768dp-portfor Nexus 9 and values-sw720dp-port for Nexus 10. But it doesn't work, Nexus 10 takes the dimens from sw768dp folder.

Please advice how to make specific dimens for Nexus 10 and Nexus 9. Thanks

1

There are 1 best solutions below

0
biddulph.r On BEST ANSWER

I believe that the Nexus 10 has a sw (smallest width) value of 800dp, so it is taking the best fit, which is sw768dp. Try moving the Nexus 10 content into a folder for sw800dp.

The Nexus 9 will continue to take its cues from the sw768dp folder