Click or drag to resize

CellGroupViewsHolderTCellVH Class

A views holder representing a group of cells (row or column). It instantiates the maximum number of cells it can contain,

but only those of them that should be displayed will have their views enabled

Inheritance Hierarchy
SystemObject
  Com.ForbiddenByte.OSA.CoreAbstractViewsHolder
    Com.ForbiddenByte.OSA.CoreBaseItemViewsHolder
      Com.ForbiddenByte.OSA.CustomAdapters.GridViewCellGroupViewsHolderTCellVH
        Com.ForbiddenByte.OSA.Demos.GridDifferentItemSizesMyCellGroupViewsHolder

Namespace:  Com.ForbiddenByte.OSA.CustomAdapters.GridView
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class CellGroupViewsHolder<TCellVH> : BaseItemViewsHolder
where TCellVH : new(), CellViewsHolder

Type Parameters

TCellVH
The views holder type used for the cells in this group

The CellGroupViewsHolderTCellVH type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyContainingCellViewsHolders
The views holders of all containing cells, active or not
Public propertyItemIndex
Uses base's implementation, but also updates the indices of all containing cells each time the setter is called
(Overrides AbstractViewsHolderItemIndex.)
Public propertyNumActiveCells
The number of visible cells, i.e. that are used to display real data. The other ones are disabled and are either empty or hold obsolete data
Top
Methods
  NameDescription
Public methodCollectViews

Called by [!:Init(GameObject, int, RectTransform, int)], after the GameObjects for the group and all containing cells are instantiated

Creates the cells' views holders and initializes them, also setting their itemIndex based on this group's ItemIndex

(Overrides AbstractViewsHolderCollectViews.)
Protected methodOnGroupIndexChanged
This happens when the views holder is recycled or first created
Protected methodUpdateIndicesOfContainingCells
Top
Fields
  NameDescription
Protected field_Capacity
Protected field_NumActiveCells
Top
Version Information

Optimized ScrollView Adapter

Supported in: 4.3
See Also