简体   繁体   中英

How to make specific dimens for Nexus 10 and Nexus 9

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

I created two folders: values-sw768dp-port for 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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM