Android - ViewGroup (Layout)


A viewGroup is:

  • a composite (%%view|widget) GUI (ie a container for simple GUI)
  • also the top element of the Android user interface design and is then the start point of GUI definition.

The ViewGroup are invisible user interface containers that:

  • hold:
    • other Views
    • or other ViewGroups
  • and define their layout properties.

A viewGroup definition are subclasses of the ViewGroup interface.


Type of layout

  • CoordinatorLayout is a super-powered FrameLayout. CoordinatorLayout is intended for two primary use cases:
    • As a top-level application decor or chrome layout
    • As a container for a specific interaction with one or more child views
  • A ConstraintLayout is a ViewGroup which allows you to position and size widgets in a flexible way.

Documentation / Reference

Powered by ComboStrap