mdpi,hdpi,xhdpi和xxhdpi的图像分辨率 [英] Image resolution for mdpi, hdpi, xhdpi and xxhdpi

查看:501
本文介绍了mdpi,hdpi,xhdpi和xxhdpi的图像分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序的背景分辨率为720x1280像素,1080x1920像素和1440x2560像素.

I have a background for my app in resolutions 720x1280 pixels, 1080x1920 pixels and 1440x2560 pixels.

我应该将每个背景放在哪个文件夹(mdpi,hdpi,xhdpi和xxhdpi)中?

In which folders (mdpi, hdpi, xhdpi and xxhdpi) should I put each background?

推荐答案

请阅读 Android文档关于屏幕尺寸.

根据基本图像尺寸,按DPI可绘制的尺寸具有3:4:6:8:12:16的缩放比例.

From a base image size, there is a 3:4:6:8:12:16 scaling ratio in drawable size by DPI.

LDPI - 0.75x
MDPI - Original size // means 1.0x here 
HDPI - 1.5x
XHDPI - 2.0x
XXHDPI - 3x
XXXHDPI - 4.0x

例如,MDPI上100x100px的图像与XHDPI屏幕上200x200px的尺寸相同.

For example, 100x100px image on a MDPI will be the same size of a 200x200px on a XHDPI screen.

这篇关于mdpi,hdpi,xhdpi和xxhdpi的图像分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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