• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Placing controls

piller187

Newbie
I used to .NET programming where I can place my controls anywhere I want and dock or fill. Can I not do this with Android programming? I'm using eclipse as my IDE and can't for the life of me figure out how to place controls exactly where I want them on the screen. Instead they just all keep stacking on each other. What are my options with this?

Thanks
 
My bad on where I put that sorry.

So I see the other layouts but not sure how to get them. In eclipse on the right hand side when looking at main.xml it has Outline and at the top of the hierarchy it has LinearLayout and I can't delete it so not sure how I can get these other layouts to work.

I guess I just don't get how to use these layouts. Can I not just place a button where I want it exactly on the screen?
 
when you go to main.xml from the left-side explorer thingy, you get 2 tabs at the bottom - "layout" and "main.xml"
layout just lists some stuff and isn't useful in anyway, while in main.xml, you get to actually see and edit the xml file
 
I was able to get absolute layout now via the graphical layout view. Had to right click on the top layout in the hierarchy and change it that way. I prefer not to build my GUI from xml but from a visual editor. I'm more of a visual person.
 
Back
Top Bottom