This morning I was going through the Android SDK docs- specifically android.R.drawable class, to find out what stock icons android has that I can use in my project. Android has lot of icons in this class and one is encouraged to use stock icons whenever possible.
However I couldn't find any way to see how these icons look like. Their names are supposed to tell something about them, but they are vaguely descriptive at best. So I asked around on stackoverflow for help. I got a helpful link, but it is still a subset of all the drawables.
After a bit of thinking, I figured java reflection can help here and I put some code together. I ended up with a simple app which lists all the icons alongside their names. So now when you want to check out how a particular android.R.drawable.* looks like just scroll through this list.
Get the tarball and the apk. For the basic code snippet, check out my reply on stackoverflow.
Ads:
* Professional Android 2 Application Development
* The Busy Coder's Guide to Advanced Android Development
* Unlocking Android: A Developer's Guide
Tuesday, December 15, 2009
Subscribe to:
Post Comments (Atom)
4 comments:
Very helpful, thank you sir!
Very helpful indeed :)
thnx dude very useful indeed!
Post a Comment