I\'m new to Android development and have started creating my own UI. I see that you can either create it dynamically something like this (Dynamic Layouts):
@
Well, I declare mu UI in xml (99% of time), becouse it's easier for me to work that way.
It's good practice to separate UI and Code logic, XML is easier for describing UI (consider using this old designer or switch to Eclipse IDE and it's designer)
Also, one android app can have multiple designs (for phones and tablets) and it will be painfull to hand-code that in Java
Simply, use XML