Adding Icons On Mobile Application.

friday Emmanuel chigozirim
LearnFactory Nigeria
3 min readSep 25, 2020

It is very important to have an icon attached to your App after you must have finished developing. Icons are unique and it gives a description of what your product stands for. It is important to note that icons make your app attractive. if you are the developer look for something good or better tell your UI/UX designer to get you a nice icon for your app.

I will be showing you step by step approach to adding an icon to your application, it’s very sample there’s nothing to worry about. So let’s get started.

Step One: Locate the root file of the project you are working on and open the folder named android.

Step Two: Open the folder named app.

Step Three: Open the folder named src.

Step Four: Open the folder named main.

Step Five: Open the file named res. At this point, we have about six folders namely.

  1. mipmap-hdpi
  2. mipmap-mdpi
  3. mipmap-xhdpi
  4. mipmap-xxhdpi
  5. mipmap-xxxhdpi
  6. values.

These six folders five contains the App icon on default, so all you need to do is change them one after the other.

Step Six: Inside each of these folders are files with the filenames:

  • ic_launcher.png
  • ic_launcher_round.png respectively.

You are to only copy the icon you want to use in your App and rename the icon to the default one you have in the folders. Note you only have to change the one with ic_launcher.png. Don’t touch the other icon with “ic_launcher_round.png”.

After changing the name, congrats your job is done, the next step to follow is to copy the icon you just changed and past it in the remaining four folders, which are:

  1. mipmap-mdpi
  2. mipmap-xhdpi
  3. mipmap-xxhdpi
  4. mipmap-xxxhdpi

Before we wrap up, ensure that your Android phone is connected to run your program. Also, ensure you have not touched the folder named “values”. Once you are done pasting the icon, close the folder and open your code editor (Visual Studio Code) and run the following.

Step Seven: On your Visual Studio Code type on the Terminal

yarn run android

Wait for the setup to finish you will have your Icon ready.

Thanks. follow me up on Twitter and email me for more materials always visit my medium to see more articles daily

+2348101519827
fridayemmanuel273@gmail.com
@friday237 Twitter

--

--