I found the problem. For some reason I had <... type="dimension" /> instead of format="dimension />
On Jan 7, 5:22 pm, Brion Emde <[email protected]> wrote: > When I try to declare any non android:names in my attrs.xml file, I > get a horrible error. > > Here's the file, for a custom styleable component: > > <?xml version="1.0" encoding="utf-8"?> > <resources> > <declare-styleable name="TagsViewGroup"> > <attr name="android:padding" type="dimension" /> > <attr name="android:paddingRight" type="dimension" /> > <attr name="android:paddingLeft" type="dimension" /> > <attr name="android:paddingTop" type="dimension" /> > <attr name="android:paddingBottom" type="dimension" /> > <attr name="android:verticalSpacing" type="dimension" /> > <attr name="android:horizontalSpacing" type="dimension" /> > <!-- <attr name="rows" type="dimension" /> --> > </declare-styleable> > </resources> > > When I take off the comments around the line that declares "rows" as > an attribute, or try to define any of my own attributes, Eclipse goes > nuts and spits out the following: > > In <declare-styleable> TagsViewGroup, unable to find attribute rows > > non-stop, over and over, and I have to turn off automatic compilation > to be able to edit the file. > > Yet, I have the APIDemos example atttrs.xml file which does declare > custom attributes for the LabelView class and does not have this > problem. Do you know what my problem is?
-- 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

