The visual structure of the graphical user interface can be defined…
in the Java code and/or in an XML file
either in the Java code or in an XML file but not in both at the same time for a single “screen”.
exclusively in the Java code, by creating objects extending View or ViewGroup.
exclusively in an XML file listing the different Views and ViewGroups