View groups are Layouts.
- Linear Layout :This layout aligns all the views in it either horizontally or vertically.
android: orientation = “horizontal” set the layout orientation to horizontal . All the views will be added horizontally.
- Relative Layout : Displays all the child views in relative positions.
- Table Layout : Groups views into rows and columns.
<TableRow> //add the views </TableRow>
- Framelayout : Mainy used to display single view . Overlapping can be produced. Limit of framelayout is 9 views divided into particular regions.
CARDVIEW
Cardview puts the view in card. This gives embossed look to the view.
For using cardview in xml file , add the library dependencies for cardview.
CardView containsonly one child.