Re: [android-developers] Re: How do I refer to a drawable with a variable

2010-09-15 Thread { Devdroid }
On 14 September 2010 17:24, nextgen nextgenfant...@comcast.net wrote: Thank you for this, it gives me a possible solution.  Unfortunately getDrawable will only take an integer as an input, which really defeats the simplicity of solution I'm looking for.  I can set about assigning integers to

Re: [android-developers] Re: How do I refer to a drawable with a variable

2010-09-14 Thread Kostya Vasilyev
This: http://developer.android.com/reference/android/content/res/Resources.html#getIdentifier(java.lang.String, java.lang.String, java.lang.String) can be used to convert string resource identifier to its numeric value. This function is not terribly efficient, so you might want to cache the