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......</Rea lativeLAyo ut>
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
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......</Rea
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
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you
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.