Android 12 Developer Preview is here! Try it out, and give us your feedback!

RowScope

@Immutable interface RowScope
androidx.compose.foundation.layout.RowScope

Scope for the children of Row.

Summary

Nested classes
companion

Public methods
open Modifier

Align the element vertically within the Row.

open Modifier

Position the element vertically such that its alignmentLine aligns with sibling elements also configured to alignBy.

open Modifier
Modifier.alignBy(alignmentLineBlock: (Measured) -> Int)

Position the element vertically such that the alignment line for the content as determined by alignmentLineBlock aligns with sibling elements also configured to alignBy.

open Modifier

Position the element vertically such that its first baseline aligns with sibling elements also configured to alignByBaseline or alignBy.

open Modifier
Modifier.weight(weight: Float, fill: Boolean = true)

Size the element's width proportional to its weight relative to other weighted sibling elements in the Row.

Extension functions
From androidx.compose.animation
Unit
RowScope.AnimatedVisibility(visible: Boolean, modifier: Modifier = Modifier, enter: EnterTransition = fadeIn() + expandHorizontally(), exit: ExitTransition = fadeOut() + shrinkHorizontally(), initiallyVisible: Boolean = visible, content: () -> Unit)

AnimatedVisibility composable animates the appearance and disappearance of its content, as visible value changes.

From androidx.compose.material
Unit
RowScope.BottomNavigationItem(selected: Boolean, onClick: () -> Unit, icon: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, label: () -> Unit = null, alwaysShowLabel: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, selectedContentColor: Color = LocalContentColor.current, unselectedContentColor: Color = selectedContentColor.copy(alpha = ContentAlpha.medium))

A BottomNavigationItem represents a singular primary destination in your application.

Public methods

align

@Stable open fun Modifier.align(alignment: Alignment.Vertical