Android - ViewGroup (Layout)

1 - About

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.

3 - Declaration

4 - Type of layout

  • Android - LinearLayout (Vertical|Horizontal). Row or column layout.
  • RelativeLayout Api and doc A Layout where the positions of the children can be described in relation to each other or to the parent.
  • Android - FrameLayout. FrameLayout is great for simple layouts when you only have one child to view, like a list View that fills the entire content area

  • 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.

5 - Documentation / Reference


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap