Property

isTransparent

Whether this layout is drawn fully transparent by an ancestor: the layer of its outermost modifier, or a layer of any ancestor layout, has an alpha of 0 or less.

Source set: Common
public val LayoutInfo.isTransparent: Boolean

Whether this layout is drawn fully transparent by an ancestor: the layer of its outermost modifier, or a layer of any ancestor layout, has an alpha of 0 or less.

Layers inside this layout's own modifier chain are not considered, so Modifier.alpha(0f) applied after other modifiers on this layout doesn't make it transparent.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: