This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic