All the android.R.drawables are belong to us

Tagged:
I use the provided Android "drawables" with my Android apps fairly often. (You can use the built in resources in addition to your own.) I find the "ic_menu" items the most useful. I reuse the same icons the built in apps use for common functions like "save", "edit", "delete", "dial", "browse", and so on. Also, from time to time, some other image the platform provides fits. I found myself guessing at particular images from names, and then jotting down notes - and then finally said to myself "man, I gotta write a script to just spit these out in a table for reference." Hence, here is the full reference to the included drawables for the SDK. (UPDATED for Android 1.6 and 2.0 and now hosted on AppEngine - http://androiddrawableexplorer.appspot.com/.) (WARNING I haven't removed the "private" images. Apparently for Android 2.0 and above, or maybe earlier and I never noticed, some of the resources are private and cannot be used directly.) android drawables Yes, you can also just include your own drawables with your app, but the thing with the built ins is that they are always there with every app, provided by the platform, and they already cover many common icons you may need (they are in the "android" package, and included in the android.jar file).

Comments

This is a great reference,

This is a great reference, thanks!

You're welcome, thanks for

You're welcome, thanks for the thanks ;). I may move this thing to the Unlocking Android Google Code hosting site - just because that will handle the bandwidth better than my basement ;) - but I will make a redirect if I do. (Also I should probably make an image map for this, maybe a quick GWT app to handle that, because all those separate HTTP requests are most of the overhead, rather than the image data itself.)

Is there a way to reference

Is there a way to reference these within the layout xml? For instance I want an ImageButton with the drawable as ic_menu_camera. Thanks, Erik

User icons as part of layout XMLs ( Android )

This is how I use icons in my menu XMLs (layout) android:id="@+id/preferences" android:title="@string/preferences" android:icon="@android:drawable/ic_menu_preferences"/> This list of icons is great :-)

...

next try: item tag android:icon="@android:drawable/ic_menu_preferences

it's a lot harder to browse

it's a lot harder to browse now that you have them inside some sort of annoying scrolling internal frame instead of using the scrolling built into the browser, which works better for everything including find

Thank you very much for going

Thank you very much for going to the effort and sharing with everybody :) Just so you know, this page is the second result on Google for "Android application drawables"

Awesome!

This is exactly what I needed. Wouldn't of found it without your post. Thanks!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.