Android 背景图片大小(以像素为单位) [英] Android background image size in pixel
问题描述
我想为 Android 中的不同分辨率创建背景图像.所以我需要 ldpi、mdpi、hdpi、xhdpi 和 xxhdpi 的值(以像素为单位).重要的是图像不会模糊.
I would like to create a background image for different resolutions in Android. So I need the values (in pixel) for ldpi, mdpi, hdpi,xhdpi and xxhdpi. It is important that the image will not be blurred.
我已经阅读了关于多屏幕支持的文档,但有 dp 而不是像素的尺寸.
I have already read the Documentation about multiple screen support but there are sizes in dp instead of pixel.
推荐答案
没有完整的屏幕分辨率列表,ldpi、mdpi、hdpi、xhdpi 和 xxhdpi 没有固定的像素值.每个安卓设备可能有不同的分辨率.如果要填充所有分辨率,则必须创建太多图像.如果你把它们放在你的应用程序中,它会使应用程序变得巨大.也许更好的方法是使用合成图像作为背景.
there is no full list of screen resolutions, there are no fixed values in pixels for ldpi, mdpi, hdpi,xhdpi and xxhdpi. Every android device may have different resolution. If you want to fill all resolutions you will have to create too many images. If you put them in your app, it will make the app size huge. Maybe a better approach is to use composite image for background.
这篇关于Android 背景图片大小(以像素为单位)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!