Google Nexus 10 即将面世,为 the first device to use xxhdpi
resources .它的显示密度约为 300 DPI(根据 the Nexus 10 website 和 this calculator )。
但是,当我查看 Android 文档时,它指出:
ldpi
: ~120dpimdpi
: ~160dpihdpi
: ~240dpixhdpi
: ~320dpixxhdpi
未指定。
为什么Nexus 10的300 DPI屏幕是xxhdpi
而不是xhdpi
,应该是xxhdpi的大概DPI
?我们是否应该担心此时 xxhdpi
有新的资源(除了图标),还是应该让操作系统扩展 xhdpi
资源?
最佳答案
根据 G+ 资源中链接的帖子:
The gorgeous screen on the Nexus 10 falls into the XHDPI density bucket. On tablets, Launcher uses icons from one density bucket up [0] to render them slightly larger. To ensure that your launcher icon (arguably your apps most important asset) is crisp you need to add a 144*144px icon in the drawable-xxhdpi or drawable-480dpi folder.
所以看起来 xxhdpi 设置为 480dpi。据此,平板电脑使用的 Assets 来自一个 dpi 存储桶,高于它们用于启动器的存储桶。位于存储桶 xhdpi 中的 Nexus 10 将从 xxhdpi 中拉出启动器图标。
此外,不知道平板电脑会从高于其级别的 Assets 桶中获取资源。已注明。
关于Android XXHDPI 资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13215587/