Where are the drawables or clipart from android.R.drawable stored?

24,883

Solution 1

android-sdk/platforms/android-xx/data/res/drawable-yyyy

where xx is your target platform and yyyy is mdpi, hdpi, etc.

Copy the icons you want into the appropriate resource folder in your project.

Solution 2

I generally use Android Asset Studio to create icons for my apps. It has all the standard clipart, and can generate the proper files for all other icons as well.

Solution 3

http://developer.android.com/design/downloads/index.html site has Action Bar Icon Pack

Solution 4

You can use system icons by using "@android:" prefix. The icon is not copied to drawable folders, so the application size is smaller"

Example: android:icon="@android:drawable/ic_menu_preferences"

List of icons at /platforms/android-/data/res/drawable-hdpi

Note 1: If you want to copy the icons to drawable files you can also do it in eclipse by using file /new/other/Anddoid icon set/clipart button/choose button.

Note 2: the icon set could change among platforms. That is why people are suggesting to copy resources. If the applicacion is just at development state you could just link the platform icons

Share:
24,883
unmultimedio
Author by

unmultimedio

Updated on July 09, 2022

Comments

  • unmultimedio
    unmultimedio almost 2 years

    I am integrating ActionBarSherlock in my app and I want to have some menus with some items and its respective icons.

    I have looked into samples and documentation, and everything seems to be clear, but when I Inflate the menu, I can see just the text because there are no icons related to each item yet.

    I would like to use the icons you see when creating an android project:

    Android New Project Clipart

    But I can't find it, and I don't want to use direct reference to android.R.drawable in order to use those clipart icons, because I have read it is recommended to have the files in drawable folders.