Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Android Asset Studio" adds extra space when I upload my .png icons, but doesn't when it uses its internal cliparts. Why?

I'm trying to create some nice icons for some Android APP I'm dealing with, and someone directed me to the "Android Asset Studio", that nice online tool which creates full packs of icons ready to be deployed onto my (horridly) fragmented Android project res folder.

I just went to its URL to create my icons:

EDIT: [broken URL as of Oct 2016. Apparently everything has moved into Android Studio] http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-actionbar.html#source.type=image&source.space.trim=1&source.space.pad=0&name=ic_action_stickers&theme=custom&color=000%2C80

Then I noticed something a bit annoying: When using its internal cliparts, they appear perfectly trimmed/clipped/padded (that is, 0 padding), but when I try to upload my simple transparent .png files, this tool always adds some annoying padding space around my final icons, no matter what.

Is it normal? I've played with "trim/no-Trim" and "padding" buttons, but no luck (it just even makes things a bit worse).

Any hint? Am I missing something?

Thanks.

like image 926
Isaac Avatar asked Jan 21 '14 18:01

Isaac


People also ask

How many sizes launcher icons should I publish app?

LDPI should be 36 x 36. MDPI should be 48 x 48. TVDPI should be 64 x 64. HDPI should be 72 x 72.

What is best size for Android app icon?

On Android devices, launcher icons are generally 96×96, 72×72, 48×48, or 36×36 pixels (depending on the device), however Android recommends your starting artboard size should be 864×864 pixels to allow for easier tweaking.

Where should I put icons in Android Studio?

Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Further follow the path to reach the desired folder to add icon (app → res → mipmap). Step 3 - Add you app icon. You can just simply copy and paste the image in mipmap folder.


2 Answers

A couple of days ago I made this:

http://reiszecke.github.io/AndroidAssetStudioFullsize/

when you choose >> Launcher icons << Full Size edit you will be able to get your files on full size without any padding. I didn't do it for every shape tho

EDIT: I need to mention again it only works for the shape NONE, a bit for BEVEL and maybe for CIRCLE

EDIT2: I do not need Google's ugly hipster dogears, rounded corners or 3D-style presets. Use photoshop if you think you need to be trendy. This is why I said I did not do it for every shape. The only purpose of my mod is to save the time you would waste converting your icon into every single icon-size. Instead of complaining, just do your own for the other shapes. The code is public, make something of it.

like image 64
user2875404 Avatar answered Oct 13 '22 19:10

user2875404


For those like me who hates having a smaller than the others ;-) I made a small modification to one of the Android Studio plugin jar file.

  1. Download sdk-tools.jar depending on your Android studio version from here : download link
  2. Close Android Studio if it's running
  3. Go to <Your Android Studio folder>/plugins/android/lib
  4. Very important : Make sure to make a copy in another folder of your original sdk-tools.jar. If not, you won't be able to update Android Studio because of the jar modification.
  5. Copy the downloaded sdk-tools.jar file to <Your Android Studio folder>/plugins/android/lib
  6. Restart Android Studio and enjoy

Here is the result :

No Shape - Before enter image description here

No Shape - After enter image description here

Square - Before enter image description here

Square - After enter image description here

like image 40
Thomas G. Avatar answered Oct 13 '22 20:10

Thomas G.