Click or drag to resize

AbstractViewsHolderShiftIndex Method

This is only called when an item is being shifted due to an InsertItems(Int32, Int32, Boolean, Boolean) or RemoveItems(Int32, Int32, Boolean, Boolean) call, but since its data remains the same (the models are shifted to make room for the others, but they don't change), there's no need to call UpdateViewsHolder(TItemViewsHolder)

Don't forget to call the base implementation first if you override this method!

Don't forget to call the base implementation first if you override this method!

Namespace:  Com.ForbiddenByte.OSA.Core
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public virtual void ShiftIndex(
	int shift,
	int modulo
)

Parameters

shift
Type: SystemInt32
modulo
Type: SystemInt32
This is the items count, but its purpose is to limit the new value of the itemIndex to be no greater than it. If it's greater, it should be rotated. This occurs in some cases when looping is enabled. You don't need to care about this as here it's the only place it's used
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also