To my understanding, the content
file is just the xml
files contents...but in a separate file. Whats the point?
I've seen
What is the role of content_main.xml in android studio 1.4?
and there doesn't seem to be much documentation about content_XXX.xml
, so I was wondering, why did the new update include the default creation of this file?
Why divide the code into two files, why not just put all of the contents in its own xml file, I've tried it...and it works. I fail to understand why the content_main
file is generated on creation of a new project.
Can someone give me a list of benefits of why I should be using the content
file?
Thanks,
Ruchir