I’m following this Android tutorial. I’m trying to find main.xml however it’s not in res/layout. I do have res/layout/activity_my_first.xml however the root node of this file is RelativeLayout not LinearLayout like in the tutorial. How can I get main.xml?
Perhaps I can just create it myself. Or perhaps the XML file I do have is a replacement for main.xml in newer versions of the ADT Plugin. I’m brand new to Android and Eclipse so I’m a bit stuck.
Cheers!
You can just replace what’s in your activity_my_first.xml with what’s in the tutorial.
or create another xml called main.xml. The tutorial assumes you already have that created im guessing.
Just make sure in your onCreate method in your activity you have