30

When we are making images for android app, I wanted to know which way is correct for making XHDPI, HDPI, MDPI, LDPI. (both may be wrong)

The first way is get the original image, open in photoshop, change the DPI to 320 (the original has 326 DPI) then save the image as XHDPI, then change the DPI to 240 for HDPI, 160 for MDPI, 120 for LDPI.

Second way, open the original image, then half the image size (without changing the DPI) and that would be MDPI, resize the image to 0.75 of MDPI's size and that would be LDPI, resize it to 1.5 of MDPI's size and that would be HDPI.

So basically, first way is change the DPI and photoshop automatically resizes the image, the second way is keep the dpi same and manually resize the image.

If both ways are wrong, please let me know the correct way to create these images in photoshop.

4

2 回答 2

19

对不起,我有点晚了,但这也可以帮助其他人。

我使用免费插件“Cut&Slice me”。它非常易于使用。

只需点击您要导出的图层,插件会自动创建文件夹(drawable-xhdpi、drawable-hdpi...)并将它们放在上面。

我希望这可以帮助你;)

于 2013-10-17T08:32:16.497 回答
4

我想你可以改用asset studio webapp。真的很方便。

根据您对图标的用途选择您需要的选项(例如,通知图标与启动器图标不同)。

于 2013-05-08T14:35:54.503 回答