So, in case anyone encounters this issue, it turns out you can do this: int resourceId = (getResources().getIdentifier(<my image name (no extension)>, "drawable", <my package name>));
and then use the resourceId as normal. So, you can just put the name of the resource into the xml. On Nov 19, 11:07 pm, matt parker <[email protected]> wrote: > Hey guys, > > I'm trying to figure out how load a complex object hierarchy (not that > complex, basically 3 levels), with objects that contain strings, ints, > images, and sounds. I can make a custom xml solution for strings and > ints, but how do I put in drawables and raw sounds? I need the > generated R id, and I won't have that. I feel like there's got to be > a good solution for this. I don't want to do this all in code... > > Matt -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

