TransformingLazyColumn
Composable Function
Android
@Composable
public fun TransformingLazyColumn(
modifier: Modifier = Modifier,
state: TransformingLazyColumnState = rememberTransformingLazyColumnState(),
contentPadding: PaddingValues = PaddingValues(),
verticalArrangement: Arrangement.Vertical =
Arrangement.spacedBy(space = 4.dp, alignment = Alignment.Top),
horizontalAlignment: Alignment.Horizontal = Alignment.CenterHorizontally,
flingBehavior: FlingBehavior = ScrollableDefaults.flingBehavior(),
userScrollEnabled: Boolean = true,
rotaryScrollableBehavior: RotaryScrollableBehavior? = RotaryScrollableDefaults.behavior(state),
overscrollEffect: OverscrollEffect? = rememberOverscrollEffect(),
content: TransformingLazyColumnScope.() -> Unit,
)
The vertically scrolling list that only composes and lays out the currently visible items. This is a wear specific version of LazyColumn that adds support for scaling and morphing animations.
Parameters
modifier | The modifier to be applied to the layout. |
state | The state object to be used to control the list and the applied layout. |
contentPadding | a padding around the whole content. This will add padding for the content after it has been clipped, which is not possible via modifier param. You can use it to add a padding before the first item or after the last one. If you want to add a spacing between each item use verticalArrangement . |
verticalArrangement | The vertical arrangement of the items. |
horizontalAlignment | The horizontal alignment of the items. |
flingBehavior | The fling behavior to be used for the list. This parameter and the rotaryScrollableBehavior (which controls rotary scroll) should produce similar scroll effect visually. |
userScrollEnabled | Whether the user should be able to scroll the list. This also affects scrolling with rotary. |
rotaryScrollableBehavior | Parameter for changing rotary scrollable behavior. This parameter and the flingBehavior (which controls touch scroll) should produce similar scroll effect. Can be null if rotary support is not required or when it should be handled externally with a separate Modifier.rotaryScrollable modifier. |
overscrollEffect | the OverscrollEffect that will be used to render overscroll for this layout. Note that the OverscrollEffect.node will be applied internally as well - you do not need to use Modifier.overscroll separately. |
content | The content of the list. |