1.drawable (hdpi, ldpi, mdpi) What is the difference?
A: The main is to support multi-resolution.
hdpi placed inside the main high-resolution images, such as WVGA (480x800), FWVGA (480x854)
mdpi placed inside the main medium-resolution images, such as HVGA (320x480)
inside the main ldpi lowered resolution images, such as QVGA (240x320)
System based on the resolution of the machine to separately inside these folders to find the corresponding picture is why in the development of the program is compatible with different platforms to different screens, recommended to their respective folders are placed under the needs of different versions of the pictures
如果放drawable的图片,在WVGA的机器或者模拟器上打开,
他的pixel会被自动*1.5
drawable (hdpi, ldpi, mdpi)的区别
最新推荐文章于 2020-12-29 14:27:48 发布
本文详细解释了在不同分辨率的设备中如何通过放置不同密度的图片资源来实现良好的显示效果。针对hdpi、mdpi和ldpi三种不同密度的屏幕,介绍了各自适合的分辨率,并说明了系统如何根据不同设备的屏幕密度选择合适的图片资源。
1025

被折叠的 条评论
为什么被折叠?



