Android screen sizes in Pixels for ldpi, mdpi, hpdi?

前端 未结 7 576
心在旅途
心在旅途 2020-11-29 17:28

I\'ve read 10 articles yet still cant find any relation between ldpi, mdpi, hdpi and the actual dimensions in pixels!? Can anybody give a straightforward answer please(if t

7条回答
  •  暖寄归人
    2020-11-29 18:08

    Install ImageMagick and use this shell script to generate your splash and icon files for multiple devices - iOS, Android, Bada and Windows Phone. You can use cygwin/gitbash if you are on Windows

    I just did and I'm pretty happy with it :-)

    The screen sizes are inside the script and are -

    480x800 - screen-hdpi-portrait.png
    320x200 - screen-ldpi-landscape.png
    720x1280 - screen-xhdpi-portrait.png
    320x480 - screen-mdpi-portrait.png
    480x320 - screen-mdpi-landscape.png
    200x320 - screen-ldpi-portrait.png
    800x480 - screen-hdpi-landscape.png
    

提交回复
热议问题