How to create a new layout for an Android project (using Eclipse)

King_Nothing picture King_Nothing · Feb 8, 2012 · Viewed 45.5k times · Source

I think this is a fairly straightforward question but I have not been able to find an answer after some searching. I am new to Android development. I am using Eclipse and have ADT installed.

I just wanted to know if the IDE has a feature that will allow me to easily add a new layout file to my project.

At the moment I am manually adding a file to the project and calling it something like mynewlayout.xml and then manually copying the xml from the default layout (added to new Android projects). I would like to find out if it is possible to create a new layout through the IDE like you would create a new activity (by selecting AndroidManifest.xml and choosing the Application tab).

Thanks

Answer

Flynn picture Flynn · Feb 8, 2012

Go to file - new - other - Android - android XML Layout