January 2014
Intermediate to advanced
736 pages
70h 43m
English
The call to setContentView (line 39) receives the constant R.layout.activity_main to indicate which XML file represents MainActivity’s GUI—in this case, the constant represents the main.xml file. Method setContentView uses this constant to load the corresponding XML document, which is then parsed and converted into the app’s GUI. This process is known as inflating the GUI.
Read now
Unlock full access