Where do I put my icons in my android file structure, and how do I reference them in the manifest xml?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You put them in your drawables folders under res.
There are three “types” of drawables, hi-res, med-res and low-res respectively.
Each gets their own folder:
You can reference them in your code directly by using
If you want to use them in your XML files, use this instead:
As long as your drawables have the same name in all the folders, Android will pick the right one to show depending on the DPI of your device’s screen.
More info about drawables here: http://developer.android.com/guide/topics/resources/drawable-resource.html
For those reading back later, the question was about the launcher icons.
Their sizes are as follows:
You can find more about the launcher icons here: http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html#size
The article also gives some do’s and don’ts about launcher icons. Might be worth a look.