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

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


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.


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 - Beforeenter image description here

No Shape - Afterenter image description here

Square - Beforeenter image description here

Square - Afterenter image description here


I'm Having a similar problem and found a workaround fix.So after importing a new icon, for some reason android adding a strange padding and make them icons looking small, what I've done is1) right click on the imported icon (you need to do it on each xhdpi etc.) 2) reveal in folder ( <-- on Mac, on Windows should be something with explorer)3) open the icon with photoshop and press CTRL+T , stretch the icon to his boundaries, save it on the current file

Again, this is a workaround solution, I hope android will fix this horrible bug on their next version.