In the documentation for creating custom layout resources (http://
code.google.com/android/reference/available-resources.html), it says,
"Define your element in a <declare-styleable id=your_java_class_name>.
See res/layout/attrs.xml in ApiDemos." But in that file, the tag uses
a "name=" attribute instead. I assume that "name=" is correct, since
it seems to work. Is this just a documentation bug (maybe left over
from an earlier version)?

Also, the documentation lists the source file format as "XML file
without an <?xml> declaration". Again, this is at variance with the
file in ApiDemos, which does have an xml header declaration. Another
documentation bug? In general, in all resource xml files, which ones
must have an <?xml> declaration, which ones must not, and which ones
does it make no difference?

Thanks,

Ted Hopp
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to