add support for use in xml layouts.
Merge pull request #49 from junk2005x/master

add support for use in xml layouts.