Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rebuild or regenerate 'ic_launcher.png' from images in Android Studio

When one first creates a new project, that dialog lets you point to some external .PNG file, and then when that dialog completes, it generates 4 different pixel-sizes of images for use as a launcher-icon.

My question is: So, if one already has an existing project created, is there someplace to tell the Studio to re-generate 4 NEW such files, by just re-pointing it elsewhere, to some other .PNG?

It occurred to me that I could start a new project and then manually copy all the other files developed so far, such as the .JAVA and .XML files, etc, but that seems like a lot of work (that I hope won't be necessary).

like image 837
David Avatar asked Jun 28 '13 18:06

David


2 Answers

For Android Studio 0.4.0 and later, click "File > New > Image Asset".

like image 69
LazarusX Avatar answered Sep 19 '22 16:09

LazarusX


No, but you can do this almost as easily.

Go here:

https://romannurik.github.io/AndroidAssetStudio/

Build your icons using that page, and then download the zip package. Unzip it into the right directory and it'll overwrite all the drawable-*/ic_launcher.png correctly.

like image 43
Danny Dulai Avatar answered Sep 19 '22 16:09

Danny Dulai