user2498079
user2498079

Reputation: 3012

Values/Dimens folder for Nexus 10

I am trying to design the app for Nexus 10. For dimensions I have made a values-sw800dp and put the dimensions in the dimens.xml file. However the device is not reading the dimension from dimens.xml file for the Nexus 10 instead it's reading it from values-sw360dp/dimens.xml folder.

What am I doing wrong? What is the values-sw<>dp folder for the Nexus 10?

Upvotes: 0

Views: 519

Answers (2)

KDeogharkar
KDeogharkar

Reputation: 10959

Nexus 10 has ~299 ppi pixel density . so you can use values-xhdpi folder for that . see this question Steven Byle provide us a very good answer.

Upvotes: 1

Alex
Alex

Reputation: 616

More common answer: to get know dp for any device, just install Developer Tools app from market and you always will know the properties of the device. P.S.: to get to know how to calculate dimension pixels (dp), read this article.

enter image description here

Upvotes: 0

Related Questions