Link to home
Start Free TrialLog in
Avatar of imagekrazy
imagekrazy

asked on

Creating a project in eclipse

I am creating a simple UI that stacks some text view in the new project folder that I called(LinearLayouts) that I created., from the example from the book,
 my main.xml file should have the main xml tags as : <linearLayout... .....  </linearLayout>

but my project main.xml file that i created has the  beginning tags as: <RelativeLayout......</RealativeLAyout>

Why is that?, from the book  I  named the project name as "LinearLayouts" but that is not what is showing in the main.xml file
Avatar of Chris Harte
Chris Harte
Flag of United Kingdom of Great Britain and Northern Ireland image

When you create a new xml file from the file menu

File->New->Android XML file

you choose the resource type from the dropdown menu, a layout in this case.
The Root Element is then selected, this is where you make the layout LinearLayout or RelativeLayout.

It sounds to me like you are using some defaults. Either way, you can change it by changing the tags from one to the other.
Avatar of imagekrazy
imagekrazy

ASKER

Well I am not creating a new XML file,I am creating a new project in eclipse, and this is what i do ,
 I open eclipse  to start a new project ,I click New-->Android Application Project,  the application box came up where I put in the project name, application name and package name,
so I am not understanding why its not opening the way  I layout the project in the application box.
ASKER CERTIFIED SOLUTION
Avatar of Chris Harte
Chris Harte
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you