December 2013
Beginner
416 pages
12h 45m
English
Android developers use the term layout to define two things. The first—what actually appears on the screen—is defined in the layout XML files. These layout files are stored in the res/layout directory and are simply templates for what appears on the user’s screen (or part of the screen). The second meaning refers to an actual View class, such as RelativeLayout or TableLayout, which is used to display child controls, or subcontrols, on the view, such as text fields or buttons.
The ADT also contains a design mode that lets you lay out a user interface in Eclipse. Figure 3.7 shows what the screen of a simple “Hello World” application would look like in the Graphical Layout Editor.
Figure 3.7 Graphical layout for ...
Read now
Unlock full access