/// <inheritdoc/> protected override void UpdateViewsHolder(BaseVH newOrRecycled) { // Initialize/update the views from the associated model BaseModel model = _Params.data[newOrRecycled.itemIndex]; newOrRecycled.UpdateViews(model /*, _Sizes[newOrRecycled.itemIndex]*/); }
/// <summary>Overriding the base implementation, which always returns true. In this case, a view holder is recyclable only if its <see cref="BaseVH.CanPresentModelType(Type)"/> returns true for the model at index <paramref name="indexOfItemThatWillBecomeVisible"/></summary> /// <seealso cref="ScrollRectItemsAdapter8{TParams, TItemViewsHolder}.IsRecyclable(TItemViewsHolder, int, float)"/> protected override bool IsRecyclable(BaseVH potentiallyRecyclable, int indexOfItemThatWillBecomeVisible, float heightOfItemThatWillBecomeVisible) { return(potentiallyRecyclable.CanPresentModelType(_Params.data[indexOfItemThatWillBecomeVisible].cachedType)); }