Column

interface Column<T : Modifier> : Layout<T>

用于存储 Jetpack Compose Column 可组合函数的接口。 Column 是一个布局可组合函数,将其子项垂直地依次放置。

Author

M8Test, [email protected], https://m8test.com

Parameters

T

修饰符的类型。

See also

androidx.compose.foundation.layout.Column

Functions

Link copied to clipboard
abstract fun DisposableEffect(disposableEffectBuilder: DisposableEffect.() -> Unit)
Link copied to clipboard
Link copied to clipboard
abstract fun <V> getCompositionLocalValue(compositionLocal: ProvidableCompositionLocal<V>): V?

获取 compositionLocal 的值

Link copied to clipboard
abstract fun getContext(): ScriptContext

获取脚本上下文对象 ScriptContext.

Link copied to clipboard
abstract fun LaunchedEffect(launchedEffectBuilder: LaunchedEffect.() -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun setContent(contentBuilder: ColumnScopeSlot.() -> Unit)

设置 Column 的内容。

Link copied to clipboard
abstract fun setHorizontalAlignment(builder: (alignments: ColumnAlignments) -> AlignmentHorizontal)

设置布局子项的水平对齐方式。

Link copied to clipboard
abstract fun setModifier(modifierBuilder: T.() -> Unit)
Link copied to clipboard
abstract fun setVerticalArrangement(builder: (arrangements: ColumnArrangements) -> ArrangementVertical)

设置布局子项的垂直排列方式。

Link copied to clipboard
abstract fun setVisible(visible: Boolean)

设置显示/隐藏当前 Composable

Link copied to clipboard
abstract fun SideEffect(sideEffectBuilder: SideEffect.() -> Unit)
Link copied to clipboard

设置所有需要用到的聚合状态,例如 DrawerState, BottomSheetState 等

Link copied to clipboard
abstract fun trackSingleState(state: SingleState)

添加当前 Composable 需要监听的状态,如果状态改变的话 Composable 会重组