On Thursday, September 10, 2009 6:12:33 AM UTC+8, Robi wrote: > > Hey guys, > > so I have an XML file: xml/catalog.xml > which contains gallery and pictures. > > Like this: > > <?xml version="1.0" encoding="utf-8" standalone="yes"?> > <catalog xmlns:myres="http://schemas.android.com/apk/res/android"> > > <gallery title="@string/gallery01" > thumbnail="@drawable/t_gallery1"> > <picture thumbnail="@drawable/pic_01"> > </picture> > <picture thumbnail="@drawable/pic_02"> > </picture> > <picture thumbnail="@drawable/pic_03"> > </picture> > </gallery> > </catalog> > > In my view I can extract the attribute values using getAttributeValue > () in XmlPullParser, and the result is a string. > But could I somehow get the drawable resource right away? (That's why > I put the @ in the beginning) > > getAttributeNameResource() gives null so that ain't good. > > Any ideas? >
I have created a project named ADET, which could define custom XML drawable and use it as a NATIVE drawable, the project address is : https://code.google.com/p/adet/ -- 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

