Class

PaddingValues.Absolute

Describes an absolute (RTL unaware) padding to be applied along the edges inside a box.

Source set: Common
public class Absolute(
        @Stable private val left: Dp = 0.dp,
        @Stable private val top: Dp = 0.dp,
        @Stable private val right: Dp = 0.dp,
        @Stable private val bottom: Dp = 0.dp,
    ) : PaddingValues

Describes an absolute (RTL unaware) padding to be applied along the edges inside a box.

Functions

calculateLeftPadding

Source set: Common
override fun calculateLeftPadding(layoutDirection: LayoutDirection): Dp

calculateTopPadding

Source set: Common
override fun calculateTopPadding(): Dp

calculateRightPadding

Source set: Common
override fun calculateRightPadding(layoutDirection: LayoutDirection): Dp

calculateBottomPadding

Source set: Common
override fun calculateBottomPadding(): Dp

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int

toString

Source set: Common
override fun toString(): String
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: