I have a few custom views in my Android project and I\'ve added the relevant details to the attrs.xml file. And now I can implement my objects through XML. This works fine.
After more intensive searching on Google I gave up finding it answered elsewhere, and by chance tried using the absolute namespace of my generated R file it worked. May this solve all your problems.