Android background image size for XXHDPI

戏子无情 提交于 2019-12-03 09:14:38

问题


I need to set the background picture for my app, the only problem is that i dont know what size the image has to be for XXHDPI devices.

I read here for MDPI, HDPI and XHDPI devices, but nothing for XXHDPI: Android splash screen image sizes to fit all devices

So, what size does the background has to be for drawable-xxhdpi folder?


回答1:


MDPI is your baseline. Means the base size.

LDPI is 0.75*MPDI

HDPI is 1.5*MDPI

XHDPI is 2*MPDI

XXHDPI is 3*MDPI

XXXHDPI is 4*MDPI

See this image for more information

Source: http://developer.android.com/guide/practices/screens_support.html




回答2:


You need this

and this: MDPI: x1, HDPI: x1.5, XHDPI: x2, XXHDPI: x3



来源:https://stackoverflow.com/questions/19661189/android-background-image-size-for-xxhdpi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!