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