How do I declare an Android UI element using XML?
It seems that Google has updated its developer page and added various trainings there.
One of them deals with the creation of custom views and can be found here