Android XXHDPI 资源

标签 android android-resources

Google Nexus 10 即将面世,为 the first device to use xxhdpi resources .它的显示密度约为 300 DPI(根据 the Nexus 10 websitethis calculator )。

但是,当我查看 Android 文档时,它指出:

  • ldpi : ~120dpi
  • mdpi : ~160dpi
  • hdpi : ~240dpi
  • xhdpi : ~320dpi
  • xxhdpi 未指定。

为什么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 中拉出启动器图标。

Source

此外,不知道平板电脑会从高于其级别的 Assets 桶中获取资源。已注明。

关于Android XXHDPI 资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13215587/

相关文章:

android - ListView PerformItemClick 不工作

java - 更改eclipse jdk

android - Cordova android - 如何用生成的自定义 build.gradle 替换

android - 值等于dimens.xml 中的match_parent 和fill_parent?

android - 用不同颜色绘制 FILL_AND_STROKE 表格

android:如何将 xml 布局中的子项添加到自定义 View 中

Android 数据库损坏,但可以在 SQLite 管理器中打开。可恢复?

android - 如何通过okhttp验证Http/2?

Android 发布版本 - MissingDefaultResource "error"

Android - 通过引用其他定义的颜色来定义颜色