Click or drag to resize

OSATParams, TItemViewsHolderUpdateViewsHolder Method

Here the data in your model should be bound to the views. Use newOrRecycled.ItemIndex (ItemIndex) to retrieve its associated model

Note that views holders are re-used (this is the main purpose of this adapter), so a views holder's views will contain data from its previously associated model and if,

for example, you're downloading an image to be set as an icon, it makes sense to first clear the previous one (and probably temporarily replace it with a generic "Loading" image)

Note that this is not called for items that will remain visible after an Insert or Remove operation is done

Namespace:  Com.ForbiddenByte.OSA.Core
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected abstract void UpdateViewsHolder(
	TItemViewsHolder newOrRecycled
)

Parameters

newOrRecycled
Type: TItemViewsHolder
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also