开发者

How using drawable-hdpi, mdpi... etc. affects performance of drawing ImageViews

开发者 https://www.devze.com 2023-04-03 23:22 出处:网络
Working on this I noticed a difference in performance depending on where I put my assets. Counter-intuitively, ImageViews get drawn faster when I move my assets to drawable-hdpi when testing on a mdpi

Working on this I noticed a difference in performance depending on where I put my assets. Counter-intuitively, ImageViews get drawn faster when I move my assets to drawable-hdpi when testing on a mdpi device (scaling factor of 1).

Are there any general rules to this? I'm not s开发者_如何学编程ure this can be applied to other cases because I've extended layouts and widgets here and there.


This will clear you hdpi-ldpi doubt.

0

精彩评论

暂无评论...
验证码 换一张
取 消