在像素Android的背景图片的大小像素、背景图片、大小、Android

2023-09-11 12:00:18 作者:寂寞煙的味道

我想创建Android中不同分辨率的背景图像。所以,我需要的值(像素)的LDPI,MDPI,华电国际,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,华电国际,xhdpi和xxhdpi像素为单位的固定值。每一个Android设备可能具有不同的分辨率。如果你想填的所有决议,你必须创建太多的图像。如果你把它们放在你的应用程序,就会使应用程序规模庞大​​。也许更好的做法是使用背景合成图像。

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.

 
精彩推荐