{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PaddingValues.Absolute

public final class PaddingValues.Absolute implements PaddingValues


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

Summary

Public constructors

Absolute(
    @NonNull Dp left,
    @NonNull Dp top,
    @NonNull Dp right,
    @NonNull Dp bottom
)

Public methods

@NonNull Dp

The padding to be applied along the bottom edge inside a box.

@NonNull Dp

The padding to be applied along the left edge inside a box.

@NonNull Dp

The padding to be applied along the right edge inside a box.

@NonNull Dp

The padding to be applied along the top edge inside a box.

boolean
equals(Object other)
int
@NonNull String

Public constructors

Absolute

public Absolute(
    @NonNull Dp left,
    @NonNull Dp top,
    @NonNull Dp right,
    @NonNull Dp bottom
)

Public methods

calculateBottomPadding

public @NonNull Dp calculateBottomPadding()

The padding to be applied along the bottom edge inside a box.

calculateLeftPadding

public @NonNull Dp calculateLeftPadding(@NonNull LayoutDirection layoutDirection)

The padding to be applied along the left edge inside a box.

calculateRightPadding

public @NonNull Dp calculateRightPadding(@NonNull LayoutDirection layoutDirection)

The padding to be applied along the right edge inside a box.

calculateTopPadding

public @NonNull Dp calculateTopPadding()

The padding to be applied along the top edge inside a box.

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public @NonNull String toString()