android - android设计的屏幕尺寸(以像素为单位)?

标签 android dpi

正如我在 android 文档站点中发现的那样,Android 设备屏幕有 4 个通用尺寸。但我在 dp 中找到了测量单位。 像这样:

xlarge screens are at least 960dp x 720dp
large screens are at least 640dp x 480dp
normal screens are at least 470dp x 320dp
small screens are at least 426dp x 320dp

如何在 photoshop 上做到这一点,如何获得以像素为单位的尺寸? 我需要有 4 个设计 ldpimdpihdpixhdpi 吗?我需要有 16 个版本的设计吗? ?

最佳答案

是的,您有 4 种设计,例如:

xhdpi = 100% image
hdpi = 75% image of xhdpi image
mdpi = 50% image of xhdpi image
ldpi = 50% image of hdpi image

即:

如果 xhdpi 中有 96 x 96 图像,则需要放置

72 x 72 in hdpi folder - ( 75 % of xhdpi )
48 x 48 in mdpi folder - ( 50 % of xhdpi )
36 x 36 in ldpi folder - ( 50 % of hdpi )

关于android - android设计的屏幕尺寸(以像素为单位)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15741904/

相关文章:

android - 没有 Google Play 服务的设备的回退计划是什么

android - 使用开源机器学习 Datumbox 框架

android - 适用于 Amazon Kindle HDX 7"高清屏幕的正确布局资源文件夹

c# - 检测非 DPI 感知应用程序是否已缩放/虚拟化

python - 计算屏幕DPI

c++ - SetWindowPos() 跨进程 DPI 感知

java - 如何向Volley的JsonArrayRequest传递参数

android - 我是否需要通过 IntentService 中的父类(super class) onCreate 和 onDestroy 方法调用?

android EditText imeOptions OnClick

C# WinForms 禁用 DPI 缩放