---
title: "absolutePadding"
description: "Apply additional space along each edge of the content in [Dp]: [left], [top], [right] and
[bottom], ignoring the current locale's layout direction."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


```kotlin
public fun GlanceModifier.absolutePadding(
    left: Dp = 0.dp,
    top: Dp = 0.dp,
    right: Dp = 0.dp,
    bottom: Dp = 0.dp,
): GlanceModifier
```


Apply additional space along each edge of the content in `Dp`: `left`, `top`, `right` and
`bottom`, ignoring the current locale's layout direction.



<div class='sourceset sourceset-android'>Android</div>


```kotlin
public fun GlanceModifier.absolutePadding(
    @DimenRes left: Int = 0,
    @DimenRes top: Int = 0,
    @DimenRes right: Int = 0,
    @DimenRes bottom: Int = 0,
): GlanceModifier
```


Apply additional space along each edge of the content in `Dp`: `left`, `top`, `right` and
`bottom`, ignoring the current locale's layout direction.



