image size (drawable-hdpi/ldpi/mdpi/xhdpi)

后端 未结 9 1829
逝去的感伤
逝去的感伤 2020-11-28 17:32

Study android, now I\'ve some images to put into drawable dirs (hdpi/ldpi/mdpi/xhdpi). I read a lot but again I don\'t understand. Which size should be an image for every di

9条回答
  •  情深已故
    2020-11-28 18:20

    I have a full explanation already posted here

    Basically, General guidelines for designing images are:

    ldpi is 0.75x dimensions of mdpi
    hdpi is 1.5x dimensions of mdpi
    xhdpi is 2x dimensinons of mdpi
    

    Usually, I design mdpi images for a 320x480 screen and then multiply the dimensions as per the above rules to get images for other resolutions.

    Please refer to the full explanation for a more detailed answer.

提交回复
热议问题