protected void layoutMinorAxis(int targetSpan,int axis,int[] offsets,int[] spans){
  super.layoutMinorAxis(targetSpan,axis,offsets,spans);
  int col=0;
  int ncells=getViewCount();
  for (int cell=0; cell < ncells; cell++, col++) {
    View cv=getView(cell);
    for (; isFilled(col); col++)     ;
    int colSpan=getColumnsOccupied(cv);
    int rowSpan=getRowsOccupied(cv);
    if (rowSpan > 1) {
      int row0=rowIndex;
      int row1=Math.min(rowIndex + rowSpan - 1,getRowCount() - 1);
      spans[cell]=getMultiRowSpan(row0,row1);
    }
    if (colSpan > 1) {
      col+=colSpan - 1;
    }
  }
}

protected void layoutMinorAxis ( int targetSpan , int axis , int [ ] offsets , int [ ] spans ) { super . layoutMinorAxis ( targetSpan , axis , offsets , spans ) ; int col = 0 ; int ncells = getViewCount ( ) ; for ( int cell = 0 ; cell < ncells ; cell ++ , col ++ ) { View cv = getView ( cell ) ; for ( ; isFilled ( col ) ; col ++ ) ; int colSpan = getColumnsOccupied ( cv ) ; int rowSpan = getRowsOccupied ( cv ) ; if ( rowSpan > 1 ) { int row0 = rowIndex ; int row1 = Math . min ( rowIndex + rowSpan - 1 , getRowCount ( ) - 1 ) ; spans [ cell ] = getMultiRowSpan ( row0 , row1 ) ; } if ( colSpan > 1 ) { col += colSpan - 1 ; } } }
perform layout for the minor axis of the box ( i . e . the axis orthogonal to the axis that it represents ) . the results of the layout should be placed in the given arrays which represent the allocations to the children along the minor axis . this is called by the superclass whenever the layout needs to be updated along the minor axis . < p > this is implemented to delegate to the superclass , then adjust the span for any cell that spans multiple rows .
