I have successfully inflated \[code\]View\[/code\] subclasses from XML using custom attributes I've added, but \[code\]View\[/code\] hierarchies in layouts are such that you can specify an item's fully qualified class name in the XML. Animation elements, on the other hand, just use \[code\]<set>\[/code\], \[code\]<alpha>\[/code\] and so on. Is there a way to make a subclass of \[code\]AlphaAnimation\[/code\] and then inflate that from XML like a regular \[code\]AlphaAnimation\[/code\]?