LazyColumn

Functions summary

Unit
@Composable
LazyColumn(
    modifier: GlanceModifier,
    horizontalAlignment: Alignment.Horizontal,
    content: LazyListScope.() -> Unit
)

A vertical scrolling list that only lays out the currently visible items.

Unit
@ExperimentalGlanceApi
@Composable
LazyColumn(
    activityOptions: Bundle,
    modifier: GlanceModifier,
    horizontalAlignment: Alignment.Horizontal,
    content: LazyListScope.() -> Unit
)

A vertical scrolling list that only lays out the currently visible items.

Functions

@Composable
fun LazyColumn(
    modifier: GlanceModifier = GlanceModifier,
    horizontalAlignment: Alignment.Horizontal = Alignment.Start,
    content: LazyListScope.() -> Unit
): Unit

A vertical scrolling list that only lays out the currently visible items. The content block defines a DSL which allows you to emit different list items.

Parameters
modifier: GlanceModifier = GlanceModifier

the modifier to apply to this layout

horizontalAlignment: Alignment.Horizontal = Alignment.Start

the horizontal alignment applied to the items.

content: LazyListScope.() -> Unit

a block which describes the content. Inside this block you can use methods like LazyListScope.item to add a single item or LazyListScope.items to add a list of items. If the item has more than one top-level child, they will be automatically wrapped in a Box.

@ExperimentalGlanceApi
@Composable
fun LazyColumn(
    activityOptions: Bundle,
    modifier: GlanceModifier = GlanceModifier,
    horizontalAlignment: Alignment.Horizontal = Alignment.Start,
    content: LazyListScope.() -> Unit
): Unit

A vertical scrolling list that only lays out the currently visible items. The content block defines a DSL which allows you to emit different list items.

Parameters
activityOptions: Bundle

Additional options built from an android.app.ActivityOptions to apply to an activity start.

modifier: GlanceModifier = GlanceModifier

the modifier to apply to this layout

horizontalAlignment: Alignment.Horizontal = Alignment.Start

the horizontal alignment applied to the items.

content: LazyListScope.() -> Unit

a block which describes the content. Inside this block you can use methods like LazyListScope.item to add a single item or LazyListScope.items to add a list of items. If the item has more than one top-level child, they will be automatically wrapped in a Box.