Skip to main content

Making Basic App Icons


I was so excited when I found the Asset Studio in Android Studio (right click in the file menu -> New -> Vector Asset).




I was dreading the process of making an app icon for my first app, Scorekeeper. I thought I would have to deal with the pain of creating an icon for each of the Android pixel density buckets (mdpi, hdpi, xhdpi, xxhdpi, and xxxhdpi) and since I haven't done a lot of work with images, I probably would have been trying to do it all in Microsoft Paint. I'd like to think maybe there is a chance I would've found a better solution, but I also know myself well enough to know I like things that are familiar, and Microsoft Paint and I are old friends.


Luckily, I was exploring Android Studio one day while working on Scorekeeper and stumbled into the Asset Studio, clicked the Clip Art button, and found myself facing a treasure chest of icons. 




It was like a whole new world had opened up to me! Well, that's hyperbole, but the vector assets have saved me A LOT of time that otherwise would have been wasted on fussing around with images.

The icon making process is pretty streamlined for me now. I simply set the ic_launcher_background.xml to be a plain color:



Then I get the vector path data I need for the ic_launcher_foreground.xml file:




And BAM! Just like that I've got an Android app icon:




My go-to places for finding vector drawables are: 



SVGCreator.com can turn any of my Paint masterpieces into an SVG file. I get the path data I need for a vector drawable from the SVG file. The SVG path data from that website does turn the image upside-down, but it's an easy fix: https://stackoverflow.com/questions/43782733/fliping-drawable-image-in-vector-drawable (TLDR: android:pivotY="half of your viewportHeight" and android:scaleY="-1").

This strategy has worked well for the 6 apps I've made so far. Maybe someday I'll dig in and learn more about graphic design and working with images, but for now this simple method is letting me focus on other aspects of my app and not worry too much about the icon.

Dec 11, 2018 Edit: I just found this excellent series on using vector assets in Android apps by Nick Butcher, a designer at Google: https://medium.com/androiddevelopers/using-vector-assets-in-android-apps-4318fd662eb9

Comments

Popular posts from this blog

Build the life you want to live. The simple things matter.

"Build the life you want to live" is a phrase that changed my life.  I learned it while stuck in a soul-sucking accounting job. I was feeling disillusioned with my new career. I wanted to help people directly, not make rich corporations even richer.  I made a pivot. I learned to code Android apps and uploaded a handful of them to the Google Play Store.  Coding didn't stick as a new career path for me, but of all the things I've made in the past decade, those little apps still make me so proud and happy.  I finally felt like I was helping people. I received a lot of nice feedback from people all over the world. One person even told me they used my little Change Calculator to help their kid get a job. I made that app 8 years ago, and I love to see people are still using it. I'm learning that "building the life I want to live"  doesn't mean I have to wait for some grand moment when everything finally comes together. Even the small stuff I'm building...

New Etsy item! Cute Panda Earrings by Amanda Roos

  Check them out in my Etsy shop: https://amandaroosart.etsy.com

Impeach and remove Trump. No more endless war.

 The Trump administration attacked Iran today. This is not ok. Protest tomorrow, Sunday, June 22, 2025. Anywhere. Noon. Make a sign. Impeach and remove Trump now.  Call your senators and representatives. 5calls.org makes it easy. Send physical mail. Don't let up.  War is expensive.  Not just money.  HUMAN LIVES. The sign I painted: