Not able to understand how to use different density images for 1.6+?

后端 未结 3 829
野的像风
野的像风 2020-12-30 16:35

I\'m trying to understand how the res/drawables images should work with different screen densities. Right now I\'ve got a 1.5 app, and for example, I have an image that is 1

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-30 17:04

    You can never be sure to cover all possible screen sizes. But if your layout arranges items automatically, you can set the absolute image size with px instead of dip.

    Maybe you also want to use (small/normal/large) instead of (ldpi/mdpi/hdpi), because the former refer to screen size instead of density. Resource directory qualifiers

提交回复
热议问题