tags:

views:

42

answers:

1

Is there a way to extend a drawable (just like how shapes work, create your own tag) and allow it to be inflated from XML? Or is drawable only for the allowed 9 types?

+2  A: 

You cannot use your own drawable classes from XML.

Romain Guy
Thx Romain, any information on why is it not supported?
Azlam
They are often loaded into other processes where custom classes can not be loaded. It is very useful to be have a guarantee that any particular drawable can be loaded and displayed by any app.
hackbod