Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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

like image 745
King_Nothing Avatar asked Feb 08 '12 13:02

King_Nothing


People also ask

Can you build an Android app in Eclipse?

For developing the android application using eclipse IDE, you need to install the Eclipse. you can download it from this location download the Eclipse. Eclipse classic version is recommended but we are using the Eclipse IDE for JavaEE Developers.

How do you create a new project in Android Studio?

If you don't have a project opened, Android Studio shows the Welcome screen, where you can create a new project by clicking Start a new Android Studio project. If you do have a project opened, create a new project by selecting File > New > New Project from the main menu.

Can I use Eclipse with Android Studio?

Android Application Development can be done using Android Studio as well as Eclipse IDE. We can create android applications in Eclipse IDE using the ADT plugin.


1 Answers

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

like image 94
Flynn Avatar answered Nov 02 '22 04:11

Flynn