drawable (hdpi, ldpi, mdpi)的区别

本文详细解释了在不同分辨率的设备中如何通过放置不同密度的图片资源来实现良好的显示效果。针对hdpi、mdpi和ldpi三种不同密度的屏幕,介绍了各自适合的分辨率,并说明了系统如何根据不同设备的屏幕密度选择合适的图片资源。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值