Seegatesite – I’ll share how to create android icon and logo with only 3 steps. If previously I have shared tutorial create android applications, if the display icon and logo you are still using the default android’s icon , it will not enhance your application. There have been many sites that share the way how to displays the android icon and logo on your project, here I reminded again easily create icon and logo android with only 3 steps.
Let’s start the tutorialcreate android icon and logo for beginners with only 3 steps
Step 1. Prepare the image to be used for icon and logo
Step 2. Please visit Android Asset Studio to create your android icon and logo.
Please adjust your own settings icon and logo desired. If so, press the “download .zip” button , and then extract the downloaded file.
Duplicate the entire mipmap folder and name it become drawable folder as shown below
Then copy the entire folder mipmap and drawable into the android folder of your project (your android project folder -> app -> src -> main -> res)
3. Add the following script to AndroidManifest.xml and MainActivity.java to display android icon and logo
getSupportActionBar().setDisplayShowHomeEnabled(true); getSupportActionBar().setLogo(R.drawable.ic_launcher); // change with your icon name getSupportActionBar().setDisplayUseLogoEnabled(true);
Build and run your application, if successful you will find on the application icon and logo as shown below
Android requires 4 pictures with the following sizes
– hdpi with size 72 X 72 Pixel.
‐ mdpi with size 48 X 48 Pixel.
‐ xhdpi with size 96 X 96 Pixel.
‐ xxhdpi with size 144 X 144 Pixel.
An easy right ?
Read also my other tutorial on Android Tutorial – How to Use XML Parser Android with Simple Example for Beginner or simply read about android programming tutorial for beginners
Thus my tutorial about Android Tutorial – 3 Steps to Create Android Icon and Logo Application for Beginners, may be useful.
Latest posts by Sigit Prasetya Nugroho (see all)
- Rest API And HTTP Methods (GET, POST, PUT, DELETE) Using Slim Framework And PHP - March 23, 2017
- Slim Framework Basic Tutorial For Beginner, A Micro Framework For PHP - February 27, 2017
- How To Back Up The Entire MySql Database with PHP - February 23, 2017