Android UI designing can be done either in XML or programmatically in application But the Android UI designer mostly prefer XML for defining UI because it separate the presentation from the code and makes easier to visualize  manage  edit and debug the App