A ViewGroup is a special view that can contain other views (called children.) The view group is the base class for layouts and views containers.
There are many types of ViewGroup like:

  • LinearLayout

    • Vertical (equal height):

    LinearLayoutVertival_01.png

    • Vertical (difference height):

    LinearLayoutVertical_02.png

    • Horizontal (equal width):

    LinearLayoutHorizontal_01.png

    • Horizontal (difference width):

    LinearLayoutHorizontal_02.png

    • Difference width and height:

    LinearLayoutHorizontalVetical.png

  • ConstraintLayout

  • Toolbar

  • RelativeLayout

  • GridLayout

  • FrameLayout

GitHub

View Github