Is there a way to specify that an attribute is absolutely required inside the xml
? Something similar to an annotation ... so that when the user uses the custom view, the IDE
will notify him that he has missed an importantt attribute.
Currently I'm validating the attributes during run-time and throw an exception if he has missed one. I was wondering if there's another way of going about it.
No comments:
Post a Comment