Hello, I used to make sure to tell that the layout XML schema is only for auto completion aids. Maybe I haven't explained this in public list (as I wasn't in the MfA team when I created that), so it is time for that ...
Generally, it is not doable to allow undeclared attributes in "android" namespace as in a wildcard. In XML Schema, no one can declare complexType that leads to "ambiguous" attribute matches. We can still add <xs:anyAttribute namespace="##other" /> where applicable, but that does not apply to the same android namespace. Aside from the schema inflexibility by XML Schema design, android.widget.ImageButton does not document "style" attribute in the API Reference, so it's not applicable to that class. http://developer.android.com/reference/android/widget/ImageButton.html Maybe you are using wrong attribute for styling? (It is up to the actual Java implementation how XML attributes are used in each component, but we can only check API reference to see which attributes are applicable. The schema creation could be automated only by that.) Atsushi Eno > On Sep 28, 2011, at 3:48 PM, Agarwal, Tushar wrote: >> When I am using themes in my application (mono) it is giving me error. >> When I am applying style tag to ImageButton, it says - "The 'style' >> attribute is not declared". > Turn off "warnings as errors." That's a warning, because your XML doesn't > validate against the XML Schema that we provide for .axml files. This is > expected (you can add any attribute you want to .axml files, and handle them > specially within your classes). > > We'll investigate whether we can extend our .xsd to not generate as many > warnings. > > Thanks, > - Jon > > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > > _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid