ScalingLazyListItemScope
Deprecated Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead
@ScalingLazyScopeMarker
public sealed interface ScalingLazyListItemScope
Receiver scope being used by the item content parameter of ScalingLazyColumn.
Functions
public fun Modifier.fillParentMaxSize(
@FloatRange(from = 0.0, to = 1.0) fraction: Float = 1f
): Modifier
Have the content fill the Constraints.maxWidth and Constraints.maxHeight of the parent
measurement constraints by setting the minimum width to be equal to
the maximum width multiplied by fraction and the
minimum height to be equal to the
maximum height multiplied by fraction. Note that, by default, the
fraction is 1, so the modifier will make the content fill the whole available space.
fraction must be between 0 and 1.
Regular Modifier.fillMaxSize can't work inside the scrolling layouts as the items are
measured with Constraints.Infinity as the constraints for the main axis.
public fun Modifier.fillParentMaxWidth(
@FloatRange(from = 0.0, to = 1.0) fraction: Float = 1f
): Modifier
Have the content fill the Constraints.maxWidth of the parent measurement constraints by
setting the minimum width to be equal to the
maximum width multiplied by fraction. Note that, by default, the
fraction is 1, so the modifier will make the content fill the whole parent width.
fraction must be between 0 and 1.
Regular Modifier.fillMaxWidth can't work inside the scrolling horizontally layouts as the
items are measured with Constraints.Infinity as the constraints for the main axis.
public fun Modifier.fillParentMaxHeight(
@FloatRange(from = 0.0, to = 1.0) fraction: Float = 1f
): Modifier
Have the content fill the Constraints.maxHeight of the incoming measurement constraints by
setting the minimum height to be equal to the
maximum height multiplied by fraction. Note that, by default, the
fraction is 1, so the modifier will make the content fill the whole parent height.
fraction must be between 0 and 1.
Regular Modifier.fillMaxHeight can't work inside the scrolling vertically layouts as the
items are measured with Constraints.Infinity as the constraints for the main axis.
