grid

var grid: Grid

The HexGridView's current Grid, which defaults to an empty Grid.

If the View has been inflated from an XML element specifying both app:gridRowCount and app:gridColumnCount, the Grid will be initialized with the appropriate attribute values.

Setting a new Grid instance with the same shape as the current one will only update Grid.States and invalidate the View. If a Grid with a different shape is set, the child Views will be reset and laid out again.