# ModifiersBuilders.Padding

Artifact: [androidx.wear.tiles:tiles](https://developer.android.com/jetpack/androidx/releases/wear-tiles) [View Source](https://cs.android.com/search?q=file:androidx/wear/tiles/ModifiersBuilders.java+class:androidx.wear.tiles.ModifiersBuilders.Padding) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

*** ** * ** ***


```
public final class ModifiersBuilders.Padding
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> Deprecated in Java

A modifier to apply padding around an element.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/tiles/ModifiersBuilders.Padding.Builder` **This class is deprecated.** Deprecated in Java |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/tiles/DimensionBuilders.DpProp` | `[getBottom](https://developer.android.com/reference/androidx/wear/tiles/ModifiersBuilders.Padding#getBottom())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/tiles/DimensionBuilders.DpProp` | `[getEnd](https://developer.android.com/reference/androidx/wear/tiles/ModifiersBuilders.Padding#getEnd())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/tiles/TypeBuilders.BoolProp` | `[getRtlAware](https://developer.android.com/reference/androidx/wear/tiles/ModifiersBuilders.Padding#getRtlAware())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/tiles/DimensionBuilders.DpProp` | `[getStart](https://developer.android.com/reference/androidx/wear/tiles/ModifiersBuilders.Padding#getStart())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/tiles/DimensionBuilders.DpProp` | `[getTop](https://developer.android.com/reference/androidx/wear/tiles/ModifiersBuilders.Padding#getTop())()` **This method is deprecated.** Deprecated in Java |

## Public methods

### getBottom

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public @Nullable DimensionBuilders.DpProp [getBottom](https://developer.android.com/reference/androidx/wear/tiles/ModifiersBuilders.Padding#getBottom())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets the padding at the bottom, in DP. Intended for testing purposes only.

### getEnd

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public @Nullable DimensionBuilders.DpProp [getEnd](https://developer.android.com/reference/androidx/wear/tiles/ModifiersBuilders.Padding#getEnd())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets the padding on the end of the content, depending on the layout direction, in DP and the value of "rtl_aware". Intended for testing purposes only.

### getRtlAware

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public @Nullable TypeBuilders.BoolProp [getRtlAware](https://developer.android.com/reference/androidx/wear/tiles/ModifiersBuilders.Padding#getRtlAware())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets whether the start/end padding is aware of RTL support. If true, the values for start/end will follow the layout direction (i.e. start will refer to the right hand side of the container if the device is using an RTL locale). If false, start/end will always map to left/right, accordingly. Intended for testing purposes only.

### getStart

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public @Nullable DimensionBuilders.DpProp [getStart](https://developer.android.com/reference/androidx/wear/tiles/ModifiersBuilders.Padding#getStart())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets the padding on the start of the content, depending on the layout direction, in DP and the value of "rtl_aware". Intended for testing purposes only.

### getTop

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public @Nullable DimensionBuilders.DpProp [getTop](https://developer.android.com/reference/androidx/wear/tiles/ModifiersBuilders.Padding#getTop())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets the padding at the top, in DP. Intended for testing purposes only.