Difference between RelativeLayout and LinearLayout

  • Linear Layout — Arranges elements either vertically or horizontally. i.e. in a row or column.
  • Relative Layout — Arranges elements relative to parent or other elements.