File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Linear Layout,Relative Layout,Absolute Layout aaaah.. I m confused. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Linear Layout,Relative Layout,Absolute Layout aaaah.. I m confused." Watch "Linear Layout,Relative Layout,Absolute Layout aaaah.. I m confused." New topic
Author

Linear Layout,Relative Layout,Absolute Layout aaaah.. I m confused.

Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
Hi Everyone,

I am very much confused between all this Linear Layout,Relative Layout,Absolute Layout etc..
Can any one tell me the exact differences between this layouts.
Any link or list of points will be helpful to me.

Thank you.
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

These are Layout Managers which help you arrange(layout) UI elements on the screen.

LinearLayout arranges elements side by side either horizontally or vertically(rows vs columns).

RelativeLayout is a layout manager that helps you arrange your UI elements based on some rule. You can specify thisngs like:
align this to parents left edge, place this to the left/right of this elements etc.

AbsoluteLayout is for absolute positioning i.e. you can specify exact co-ordinates where the view should go.

FrameLayout allows placements along Z-axis. That is you can stack your view elements one above the other.

Read the official documentation for details.


[List of FAQs] | [Android FAQ] | [Samuh Varta]
 
wood burning stoves
 
subject: Linear Layout,Relative Layout,Absolute Layout aaaah.. I m confused.
 
Similar Threads
Path ... doubts!
difference b/w absolute path and relative paths
difference between absolute and relative path
Difference between relative and absolute positioning
ABSOLUTE LAYOUT/ NULL LAYOUT..