When I create Android Apps, I usually start with mdpi, and then export to ldpi, xdpi and xhdpi to follow android guidelines. It’s a pretty long job, there are tools like assets studios but if you give those tools the mdpi version as start version, the xhdpi version will look ugly and rasterized.
This means that you can use them for any drawables, not only icons.
The three first actions resize and export individually each size, the last action is a “one fits all” that will enable you to create all the sizes in one click.
Also note that it’s better to use vector layers and vector masks that will scale nicely in xhdpi instead of raster layers that will get ugly.
How does it work ?
- Download the files, install the actions (drag and drop in Photoshop)
- Create your folders :
- Launch the action
- At the end of the resizing, the script will save for the web the drawable in PNG24 format, you will then get the pop-up to give the file a name and choose the right folder.
- The last script does the 3 resizings in one action in the following order : ldpi, hdpi, xhdpi. Between each resizing you’ll be asked where and how you want to save the file..
You can download and test the scripts. Feel free to ask any question if the explanation is not clear enough.