posted 10 years ago
Hi
I read in an Android tutorial that :
"In general, the XML vocabulary for declaring UI elements closely follows the structure and
naming of the classes and methods, where element names correspond to class names and
attribute names correspond to methods. In fact, the correspondence is often so direct that you can
guess what XML attribute corresponds to a class method, or guess what class corresponds to a
given xml element"
And
"Each layout file must contain exactly one root element, which must be a View or ViewGroup
object"
My Question is this : Why in XML layout files in res folder that i have seen there are no View or ViewGroup root element ???
Like this XML layout file :