Click or drag to resize

ContentSizeFitterExampleOnItemIndexChangedDueInsertOrRemove Method

Because the index is shown in the title, this may lead to a content size change, so mark the ViewsHolder to have its size recalculated

For more info, see OnItemIndexChangedDueInsertOrRemove(TItemViewsHolder, Int32, Boolean, Int32)

Namespace:  Com.ForbiddenByte.OSA.Demos.ContentSizeFitter
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected override void OnItemIndexChangedDueInsertOrRemove(
	MyItemViewsHolder shiftedViewsHolder,
	int oldIndex,
	bool wasInsert,
	int removeOrInsertIndex
)

Parameters

shiftedViewsHolder
Type: Com.ForbiddenByte.OSA.Demos.ContentSizeFitterMyItemViewsHolder
oldIndex
Type: SystemInt32
wasInsert
Type: SystemBoolean
removeOrInsertIndex
Type: SystemInt32
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also