Google is committed to advancing racial equity for Black communities. See how.


abstract class Alignment
   ↳ androidx.gridlayout.widget.GridLayout.Alignment

Alignments specify where a view should be placed within a cell group and what size it should be.

The LayoutParams class contains a rowSpec and a columnSpec each of which contains an alignment. Overall placement of the view in the cell group is specified by the two alignments which act along each axis independently.

The GridLayout class defines the most common alignments used in general layout: TOP, LEFT, BOTTOM, RIGHT, START, END, CENTER, BASELINE and FILL.


Public methods
open String

Public methods


open fun toString(): String