NuffsaidM8
Newbie
I have just gotten started into making android apps coming from a half decent knowledge of Java. I am trying to follow this tutorial by the new boston as it was published earlier this year.
My problem is that for the life of me I cannot figure out what the content.xml file does. I'm not sure if I am just not far enough in or what, but every time he says edit the activity_main file he has solely that in his layout folder while I have that and the content.xml file in there as well. When I check the preview screen, it seems to be that the content.xml file is the file that I want to edit to add widgets (from the component tree and the general xml file code), but the preview phone thing looks exactly the same on both files even though I add the widgets to the content_main.xml file. TBH I don't even know where the came from as it did not appear in the new project creation process.
Can I get an explanation for what the difference is between the two and what I am missing?
Thanks.
My problem is that for the life of me I cannot figure out what the content.xml file does. I'm not sure if I am just not far enough in or what, but every time he says edit the activity_main file he has solely that in his layout folder while I have that and the content.xml file in there as well. When I check the preview screen, it seems to be that the content.xml file is the file that I want to edit to add widgets (from the component tree and the general xml file code), but the preview phone thing looks exactly the same on both files even though I add the widgets to the content_main.xml file. TBH I don't even know where the came from as it did not appear in the new project creation process.
Can I get an explanation for what the difference is between the two and what I am missing?
Thanks.