Set icon for Android application

There Are Different Types , We See All the Types With Explanations

———————————————————————————————————————————

If you intend on your application being available on a large range of devices, you should place your application icon into the different res/drawable... folders provided. In each of these folders, you should include a 48dp sized icon:

  • drawable-ldpi (120 dpi, Low density screen) – 36px x 36px
  • drawable-mdpi (160 dpi, Medium density screen) – 48px x 48px
  • drawable-hdpi (240 dpi, High density screen) – 72px x 72px
  • drawable-xhdpi (320 dpi, Extra-high density screen) – 96px x 96px
  • drawable-xxhdpi (480 dpi, Extra-extra-high density screen) – 144px x 144px
  • drawable-xxxhdpi (640 dpi, Extra-extra-extra-high density screen) – 192px x 192px

You may then define the icon in your AndroidManifest.xml file as such:

<application android:icon="@drawable/icon_name" android:label="@string/app_name" >.... </application> 


____________________________________________________________________________________________________________________

I found this tool most useful.

  1. Upload a image.
  2. Download a zip.
  3. Extract into your project.

Done

http://romannurik.github.io/AndroidAssetStudio/

_________________________________________________________________________________________________________


1-Create Your icon in Photoshop Or Coreldraw by size 256*256

note that use PNG file format if you want to have a transparent icon

2-Upload Your icon in https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html

3-Set your setting on this site enter image description here

4-Download the zip file automatically created by the webpage by clicking on download button enter image description here

5-Extract the zip file and copy res folder to you project library enter image description here

note that res folder contain all size icon

6-finally you need to set the manifest to use icon

<application android:icon="@drawable/your_icon" >.... </application>

Post a Comment

Previous Post Next Post