Android XXHDPI resources

前端 未结 8 1013
眼角桃花
眼角桃花 2020-11-28 19:48

The Google Nexus 10 comes out shortly, and is the first device to use xxhdpi resources. It sports a display density of about 300 DPI (according to the Nexus 10 website and t

相关标签:
8条回答
  • 2020-11-28 20:16

    According to the post linked in the G+ resource:

    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.

    So it looks like the xxhdpi is set for 480dpi. According to that, tablets use the assets from one dpi bucket higher than the one they're in for the launcher. The Nexus 10 being in bucket xhdpi will pull the launcher icon from the xxhdpi.

    Source

    Also, was not aware that tablets take resources from the asset bucket above their level. Noted.

    0 讨论(0)
  • 2020-11-28 20:21

    The DPI of the screen of the Nexus 10 is ±300, which is in the unofficial xhdpi range of 280‑400.

    Usually, devices use resources designed for their density. But there are exceptions, and exceptions might be added in the future. The Nexus 10 uses xxhdpi resources when it comes to launcher icons.

    The standard quantised DPI for xxhdpi is 480 (which means screens with a DPI somewhere in the range of 400‑560 are probably xxhdpi).

    0 讨论(0)
  • 2020-11-28 20:27

    480 dpi is the standard QUANTIZED resolution for xxhdpi, it can vary something less (i.e.: 440 dpi) or more (i.e.: 520 dpi). Scale factor: 3x (3 * mdpi).

    Now there's a higher resolution, xxxhdpi (640 dpi). Scale factor 4x (4 * mdpi).

    Here's the source reference.

    0 讨论(0)
  • 2020-11-28 20:27

    As per this PPI calculation tool, Google Nexus 10 has a display density of about 300 DPI...

    However, Android documentation states that:

    ldpi : ~120dpi mdpi : ~160dpi hdpi : ~240dpi xhdpi : ~320dpi xxhdpi is not specified.

    I think we just let Android OS scale up xhdpi resources...

    0 讨论(0)
  • 2020-11-28 20:28

    The resolution is 480 dpi, the launcher icon is 144*144px all is scaled 3x respect to mdpi (so called "base", "baseline" or "normal") sizes.

    0 讨论(0)
  • 2020-11-28 20:30

    The newer android phones in the market like HTC one, Xperia Z etc have resolutions in the >480dpi range, putting them in the new xxhdpi class as well. The new assets might be useful for them too.

    0 讨论(0)
提交回复
热议问题