Interface

ZIndexScope

An interface that introduces the zIndex property to a Style receiver scope.

Source set: Common
@Deprecated(
    DeprecatedStyleScope,
    replaceWith = ReplaceWith(""),
    level = DeprecationLevel.WARNING,
)
public interface ZIndexScope

An interface that introduces the zIndex property to a Style receiver scope.

Functions

zIndex

Source set: Common
public fun zIndex(@FloatRange(from = 0.0) value: Float)

Sets the Z-index of the component. Higher Z-index components are drawn on top of lower Z-index components within the same parent. This affects drawing order, not layout.

This property is not inherited

Parameters

value The Z-index value.
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: