LinearLayout

The widgets contained in LinearLayout are displayed in the order in which they are added.

LinearLayout applies either vertical or horizontal ordering.

All children of a LinearLayout are stacked one after the other, so a vertical list will only have one child per row, no matter how wide they are, and a horizontal list elements will only be one row high.

LinearLayout(vertical) and LinearLayout(horizontal)

To understand the differences, lets create a new android project and name it LinearLayoutDemo.