为什么Nexus 6的密度是560 dpi? [英] Why Nexus 6 density is 560 dpi?

查看:167
本文介绍了为什么Nexus 6的密度是560 dpi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为Nexus 6准备资源?如果我将图像设置为xxxhdpi,它们将缩小并降低质量.我将图像设为xxhdpi,它们会放大并失去质量. 如果实际密度493ppi更接近xxhdpi〜480dpi,为什么开发人员决定将密度的设置值设置为560dpi?

How to prepare resources for Nexus 6? If I put images to xxxhdpi they will scale down and lose quality. I put images to xxhdpi they will scale up and lose quality. Why developers decided setup value 560dpi for density, if real density 493ppi is more closer to xxhdpi ~480dpi?

Nexus 6拥有令人印象深刻的5.96英寸Quad HD屏幕显示屏, 分辨率为2560 x 1440(493 ppi).这相当于〜730 x 410 dp (与密度无关的像素).

The Nexus 6 boasts an impressive 5.96" Quad HD screen display at a resolution of 2560 x 1440 (493 ppi). This translates to ~ 730 x 410 dp (density independent pixels).

Nexus 6的量化密度为560 dpi,介于 xxhdpi和xxxhdpi主密度存储桶.

Nexus 6 has a quantized density of 560 dpi, which falls in between the xxhdpi and xxxhdpi primary density buckets.

对于Nexus 6,该平台将按比例缩小xxxhdpi资产,但如果 那些不可用,那么它将扩大xxhdpi资产.

For the Nexus 6, the platform will scale down xxxhdpi assets, but if those aren’t available, then it will scale up xxhdpi assets.

xxhdpi ~480dpi
xxxhdpi ~640dpi

推荐答案

您可以将drawable-560dpi用于560 dpi. drawable-560dpidrawable-xxxhdpi图像具有相同的分辨率.

You can use drawable-560dpi for 560 dpi. drawable-560dpi and drawable-xxxhdpi images are in same resolution.

这篇关于为什么Nexus 6的密度是560 dpi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆