What Anko does is use methods instead of attributes. And what views do is parse the attributes and call the corresponding methods. And I can also not imagine Android designing views in such a way that views can be build a certain way in xml but not from code.