First introduce the common layout class
- Framelayout The simplest layout manager.
This layout management class has several features:
- Add components by default in the upper-left corner.
- If you add multiple components, they are stacked together and are in the upper-left corner. ( You can change the overlay by a gravity attribute )
- After adding the components in the upper layer.
- LinearLayout LinearLayout is laid out vertically and horizontally, LinearLayout allows each view to have a weight property.
- Relativelayout Relativelayout is a management class that is relative to other components and screen edge layouts.
- GridLayout GridLayout is the concept introduced by Android4.0, the layout of the grid, and its flexibility, can reduce the nesting layout way.
Android UI-Layout Introduction (layout includes Framelayout, LinearLayout, Relativelayout, GridLayout)