int viewCount = getViewCount(); if (columnRequirements == null || viewCount > columnRequirements.length) { columnRequirements = new SizeRequirements[viewCount]; for (int i = 0; i < columnRequirements.length; i++) columnRequirements[i] = new SizeRequirements(); } if (columnOffsets == null || columnOffsets.length < viewCount) columnOffsets = new int[viewCount]; if (columnSpans == null || columnSpans.length < viewCount) columnSpans = new int[viewCount];
    public void replace(int offset, int length, View[] views)    {      super.replace(offset, length, views);      layoutChanged(X_AXIS);    }