Wednesday, June 9, 2010

Icons on Android

Using an icon with your Android app isn't intuitive within the current eclipse environment, there are a few steps to follow and here they are:

- make sure your icon is in .png image format
- copy (drag & drop) your icon(s) to each of the /res/drawable folders (hdpi, ldpi, mdpi) in eclipse
- make sure its name is in lower case (there's no rename, need to copy then rename w/paste)
- refer to an icon ("icon") in the project manifest as: android:src="@drawable/icon"

The icon will be available for ImageView UI components and will be the iconic representation for the application within the Android application picker.

No comments:

Post a Comment