Carousel Strategy
A class responsible for creating a model used by a carousel to mask and offset views as they move along a scrolling axis.
Inheritors
Functions
Link copied to clipboard
Helper method to calculate a child's mask percentage given its masked size, unmasked size, and margins.
Link copied to clipboard
Returns the maximum small item size value.
Link copied to clipboard
Returns the minimum small item size value.
Link copied to clipboard
abstract fun onFirstChildMeasuredWithMargins(@NonNull carousel: Carousel, @NonNull child: View): KeylineState
Calculates a keyline arrangement and returns a constructed KeylineState.
Link copied to clipboard
Sets the maximum size for the small items.
Link copied to clipboard
Sets the minimum size for the small items.
Link copied to clipboard
Whether or not the strategy keylines should be refreshed based on the old item count and the carousel's current parameters.