Linear Layout,Relative Layout,Absolute Layout aaaah.. I m confused.
posted 5 years ago
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.
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.