Dianne,

I tried going down the 'declare-styleable' route as you suggested. I'm
a bit stuck because 'declare-styleable' needs to be placed in a
'attrs.xml' file, which gets compiled to R.java in the package
specified by the 'package' attribute in AndroidManifest.xml.

But I am creating a View for other developers to use. So I can't know
in advance what their package will be. So 'declare-styleable' doesn't
seem appropriate? Or am I missing something?

Please help! Is it possible in R2 to programmatically apply styles?

Regards,

Richard.

P.S. With regard to AttributeSet, I found this thread
http://markmail.org/message/ogskv4frewsxghlp which suggests it is a
known issue for now?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to