Android - ViewGroup (Layout)

Card Puncher Data Processing

Android - ViewGroup (Layout)

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.

Declaration

See Android - GUI (Layout)

Type of layout

Responsive Layout Android

Viewgrouplayout

  • 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





Discover More
Card Puncher Data Processing
Android - FrameLayout

FrameLayout is great for simple layouts when you only haveone child to view, like a list View that fills the entire content area
Android Ui Hierarchy
Android - GUI (Layout)

The graphical user interface for an Android app is built using a hierarchy of UI elements where: ViewGroup (Layout) objects are invisible container element (and therefore one is at the top). Layouts...
Card Puncher Data Processing
Android - Inflate (a layout XML to a view UI object)

In Android, you can create an UI: decoratively through a layout XML with Java object view (viewgroup for container and views for widget) In this context, Inflate means reading a layout XML (often...



Share this page:
Follow us:
Task Runner