protected void DeactiveCell(ScrollViewCell cell) { cell.SetTopPositionAndHeight(-999999, 0); cell.info = null; _cellPools[cell.identifier].Add(cell); _activeCells.Remove(cell); }
protected void AddActiveCell(ScrollViewCellInfo cellInfo, bool isFirst = false) { ScrollViewCell cell = _delegate.ScrollCellCreated(cellInfo.index); cell.info = cellInfo; if (_scrollOrientation == ScrollOrientation.Vertical) { cell.SetTopPositionAndHeight(cellInfo.position, cellInfo.size); } else if (_scrollOrientation == ScrollOrientation.Horizontal) { } if (isFirst) { _activeCells.Insert(0, cell); } else { _activeCells.Add(cell); } _delegate.ScrollCellWillDisplay(cell); }