GridLayout is one of Android's ViewGroup subclasses that places its children in a rectangular grid.
GridLayout is mainly useful when we want to show data in a grid like layout. This layout can be used to build applications like image viewer, audio or video players in order to show elements in a grid manner.
The grid is composed of a set of infinitely thin lines that separate the viewing area into cells. GridLayout supports both row and column spanning and arbitrary forms of alignment within each cell group.
An example using the GridLayout
can be found on the Android developers blog.