Function

absoluteOffset

Offset the content by (x dp, y dp, z dp) without considering layout direction.

absoluteOffset

Source set: Android
public fun SubspaceModifier.absoluteOffset(
    x: Dp = 0.dp,
    y: Dp = 0.dp,
    z: Dp = 0.dp,
): SubspaceModifier

Offset the content by (x dp, y dp, z dp) without considering layout direction. The offsets can be positive as well as non-positive.

This modifier will not consider layout direction when calculating the position of the content: a positive x offset will always move the content to the right. For a modifier that considers the layout direction when applying the offset, see offset.

Parameters

x horizontal offset in Dp.
y vertical offset in Dp.
z depth offset in Dp.
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: