Sunday, November 30, 2014

Android Adding Application icon

Inorder to add application icon which is renderable in multiple device densities, the icon asset in various dimension needs to be provided in the resource folder

        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:theme="@style/AppTheme"


By default android project has the icon name ic_launcher, this is kept in the res folder under density specific folders.

We just needs to replace these files with the one required.

Also found a very useful website which can create the resource with different densities for icons.

http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-launcher.html

Just provide icon to it and the complete set can be downloaded. So easy!

References:
http://romannurik.github.io/AndroidAssetStudio/
http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-launcher.html

No comments:

Post a Comment