Click or drag to resize

NestedScrollViewsExampleCreateViewsHolder Method

Called when there are no recyclable views for itemIndex. Provide a new viewsholder instance for itemIndex. This is the place where you must initialize the viewsholder

via Init(GameObject, Int32, Boolean, Boolean) shortcut or manually set its itemIndex, instantiate the prefab and call its CollectViews

Namespace:  Com.ForbiddenByte.OSA.Demos.NestedScrollViews
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected override ChildAdapterViewsHolder CreateViewsHolder(
	int itemIndex
)

Parameters

itemIndex
Type: SystemInt32
the index of the model that'll be presented by this views holder

Return Value

Type: ChildAdapterViewsHolder
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also