To the right of the Package Explorer in Fig. 2.9 is the Graphical Layout editor window. When you double click a file in the Package Explorer, its contents are displayed in an appropriate editor window, depending on the file’s type. For a Java file, the Java source-code editor is displayed. For an XML file that represents a GUI (such as activity_main.xml
), the Graphical Layout editor is displayed.