Android Studio : Create custom icons for your application example
Making your own Android applications will not be completed unless you learn how to create, generate and add your own custom icons for your application. This tutorial will teach you how to do just that with Android Studio and the wonderful Android Assets Studio tool.
What is custom app icon? For the uninitiated, something that looks like those icons pointed by the red arrows... rather than the standard green Android logo.
Each project created by Android Studio comes with the standard green Android logo as the project application's icon. To change the icons, navigate to res/mipmap
, right click on mipmap
and navigate to Reveal in Finder
. This will help us in locating the icons location.
and the standard icons revealed!
Head over to Android Asset Studio to generate the icons files that we need. The Android Asset Studio is a WYSIWYG(What You See Is What You Get) online tools that will handle all the dirty work for you.
Click on the Launcher Icon Generator
tab and click on the Image
button such as shown on position 1.
Generate both Square
first and follow by Circle
icons after downloading the zip file at position 2.
REMEMBER to append _round
word for Circle
icons at position 3.
Hit the download button on position 4 to download two zip files. One for Square
icons and another for Circle
icons.
NOTE: You will need to supply your own image for the icon generator. There are plenty of free icons for Android app available for download as well.
Unzip the first zip file, and copy each image files to replace the standard green Android logo icons.
Drag and drop the files from zip file to replace the green Android logo icons. REPEAT for each directory. mipmap-xxxhdpi
, mipmap-xxhdpi
and so on.
and do the same for the _round
icon files as well.
Once you're done, head back to Android Studio and it will automatically refresh to reflect the changes in the icons. If everything goes well, you should see the icons changed.
Hit the Run
button and your application icon should show the custom icon in the Android Virtual Device(emulator)
References:
https://developer.android.com/studio/write/image-asset-studio.html#creating-launcher
See also : Android Studio : Use image as AlertDialog title with custom layout example
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+29.9k Golang : How to verify uploaded file is image or allowed file types
+11.1k Golang : Byte format example
+29.4k Golang : How to declare kilobyte, megabyte, gigabyte, terabyte and so on?
+5.8k Golang : Build new URL for named or registered route with Gorilla webtoolkit example
+9.4k Golang : Populate slice with sequential integers example
+10.8k Golang : Web routing/multiplex example
+24.9k Golang : Storing cookies in http.CookieJar example
+12.3k Golang : Transform comma separated string to slice example
+11.8k Golang : convert(cast) string to integer value
+10k Golang : Convert file unix timestamp to UTC time example
+7.5k Golang : Lock executable to a specific machine with unique hash of the machine
+9.1k Golang : How to protect your source code from client, hosting company or hacker?